afsy afsy - 1 year ago 71
PHP Question

redirect all subfolder request to a specific folder

I am trying to redirect all the requests to a specific folder inside my domain.

Like this. needs to be redirected to by preserving the requested address

Answer Source

Try this method which will redirect as you expect

RewriteRule ^(.*)$ /specifiedfolder/$1 [L]