Jump to content

[SOLVED] mod_rewrite issue


robert972

Recommended Posts

Hi,

I have this in my .htaccess:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^-]*)\.html$ $1.php
RewriteRule ^([^-]*)-(.*)\.html$ $1.php?$2.html

 

consider these:

http://www.mysite.com/index.html?manufacturers_id=53

http://www.mysite.com/index.php?manufacturers_id=53

 

the first url doesnt work, the second does.  i need the first one to work, since it is the rewritten url.

please help, thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/53460-solved-mod_rewrite-issue/
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.