doug007 Posted April 3, 2009 Share Posted April 3, 2009 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 Quote Link to comment Share on other sites More sharing options...
doug007 Posted April 3, 2009 Author Share Posted April 3, 2009 sorry guys, i copied the wrong regex, here is the regex for the directory: RewriteRule ^/(img|css|files|js)(.*)$ /app/webroot/$1$2 [l] RewriteRule ^/$ /index.php [l] RewriteRule ^/(.+)\?(.*)$ /index.php?url=/$1&$2 [l] RewriteRule ^/(.*)$ /index.php?url=/$1 [l] Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted April 4, 2009 Share Posted April 4, 2009 Add RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d at the top. Quote Link to comment Share on other sites More sharing options...
doug007 Posted April 5, 2009 Author Share Posted April 5, 2009 Hi Dan, when i do that it works fine, but then all other links do not work, my images, css and js don't get picked upon? cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.