Jump to content

hide url problem


mattm1712

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.