mattm1712 Posted June 20, 2012 Share Posted June 20, 2012 hi i am having trouble and cant see why this is my htaccess file # .htaccess mod_rewite RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ index.php/url=$1 [QSA,L] and my index is <?php echo 'index file'; echo $_GET['url']; echo '<hr />'; $url = explode('/',$_GET['url']); print_r($url); ?> if i got to mydomain/test/hello nothing is beenig returned other than index file Array ( [0] => ) Link to comment https://forums.phpfreaks.com/topic/264487-hide-url-problem/ Share on other sites More sharing options...
Jessica Posted June 20, 2012 Share Posted June 20, 2012 index.php/url=$1 Should be index.php?url=$1 Link to comment https://forums.phpfreaks.com/topic/264487-hide-url-problem/#findComment-1355501 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.