Can someone tell me what this code does not work:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/?web
RewriteRule ^/?(.+) /web/$1 [L]
I am trying to get it where if someone visits any file that does NOT exists:
http://www.domain.com/usernameHere
it would just load http://www.domain.com/web/usernameHere
We added the first two conditions so if the page calls an image it should work because the condition would fail, also if they called a directory on the website it would fail because it exists... othe than that everything else should be redirected.
It does not work, do you see any errors?
Thank you.
Richard