I successfully was able to rewrite my dirty urls to clean urls but this broke my image and style folders too :(
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /www/index.php?page=$1&cmd=$2 [L]
I successfully was able to rewrite my dirty urls to clean urls but this broke my image and style folders too :(
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /www/index.php?page=$1&cmd=$2 [L]
That's probably because your styles are going to index.php too now. What I mean is
/styles/myStyle.css -> /www/index.php?page=styles&cmd=myStyle.css
So you should probably fix this by only rewriting some URLs. Like something like this?
RewriteRule ^pages/([^/]*)/([^/]*)$ /www/index.php?page=$1&cmd=$2 [L]