Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Trying to get friendly url values - Please help
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Trying to get friendly url values - Please help

Trying to get friendly url values - Please help 17 years, 1 month ago #3237

Hi everyone,

I recently installed JoomSEF 2.2.0, it's working fine, displaying the friendly URLs by category and title.

I am trying to explode the created friendly url string into an array to get some values but the following code results in:

<?php
echo \"\" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
// Gets localhost/joomla_test/index.php instead of localhost/joomla_test/categoryA/page.php

echo $_SERVER['REQUEST_URI'];
// Gets /joomla_test/index.php?option=com_content&task=view&id=16&Itemid=36 instead of /joomla_test/categoryA/page.php

echo $_SERVER['PHP_SELF'];
// Gets /joomla_test/index.php instead of /joomla_test/categoryA/page.php.
?>[/color]

Apache .htaccess is standard:

########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section


Trying to get the url always results in the url before it was changed by JoomSEF.

I cant figure out if it is the .htaccess file or what?

Brilliant component by the way, excellent work.

I'd really appreciate any help

Post edited by: zoo881, at: 2007/10/16 00:50<br><br>Post edited by: zoo881, at: 2007/10/16 00:51

Re:Trying to get friendly url values - Please help 17 years, 1 month ago #3245

Anyone have any ideas how to get the sef url from: ?
$_SERVER['REQUEST_URI'];
  • Page:
  • 1
User Login Empty