Jump to content

The Link ID


manalnor

Recommended Posts

Hello friends,

 

what to write in .htacess file so that i can convert the following link

 

cat.php?id=$id

 

to

 

$id/something-anything

 

so that by hitting the link

$id/something-anything

it will redirect to

cat.php?id=$id

automatic

 

I've tired this but faild

 

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ cat.php?id=$1 [L,QSA]

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/244713-the-link-id/
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.