Jump to content

Rewrite without page name


frist44

Recommended Posts

I'm trying to rewrite a URL so that it doesn't include the filename.

 

Take www.domain.com/page.php?a=4 to

 

www.domain.com/pg?a=4

 

For some reason I can't get it right.

 

I have:

 

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^pg$ page.php [L]

 

and it's not doing it. any ideas?

Link to comment
https://forums.phpfreaks.com/topic/148646-rewrite-without-page-name/
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.