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] => ) Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.