Jump to content

directories and rewrite rules


matfish

Recommended Posts

Hi there,

 

I've recently moved server and it seems to be working differently. Not sure if anyone knows the reason I can change on the server (it's dedicated so I can change) to save changing my site structure...

 

I have a rewriterule of the following: RewriteRule ^blog/([^/]+)$ /blog/blog_detail.php?rewrite=$1 [L,NC]

which gives me "nice URLs" but now the directory /blog/index.php doesn't work? It's like index.php is being passed as the rewrite=$1 variable...

 

Did that make sense?

 

Any help would be appreciated.

 

Many thanks

Link to comment
https://forums.phpfreaks.com/topic/202947-directories-and-rewrite-rules/
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.