mod_rewrite regex
Posted: Wed Jun 13, 2007 4:15 pm
I can get this to work:
But it's too greedy. I want to have different pages for fake folders so like folder1/ would produce a different rewrite than folder1/folder2/. And strangely... This doesn't seem to work at all.
Ideally, the second regex would only give me requests that consisted of one folder... But it just send me to an inexistant page.
Suggestions?
Code: Select all
RewriteCond %{REQUEST_URI} ^.*/?$Code: Select all
RewriteCond %{REQUEST_URI} ^[^/]/?$Suggestions?