Jump to content

Regex Rewrite Rule


doug007

Recommended Posts

Hi Guys,

 

I have a directory where i am serving an application from.  At the moment this directory does not allow any other folders to be added to serve other web pages due to the below regex.

 

can somebody please help me fixing this, I've tried much, but all with no joy.

 

All i want to do is add another folder called "markets" to the existing directory and serve new web pages from there.

 


RewriteRule ^/(img|css|files|js)(.*)$ /$1$2 [L]
RewriteRule ^/$ /index.php [L]
RewriteRule ^/(.+)\?(.*)$ /index.php?url=/$1&$2 [L]
RewriteRule ^/(.*)$ /index.php?url=/$1 [L]
[/cpde]

cheers

Link to comment
https://forums.phpfreaks.com/topic/152388-regex-rewrite-rule/
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.