Useful notes & manuals
from the
world wide web
Register now!
Changing root folder through htaccess Unsorted
Solution from: unknown Created by tlw on 18.07.2024 @ 23:37

When You need to change the root folder of the website transparently with no touching actual scripts, then this one would help.

RewriteEngine on

# redirects to different root folder
RewriteCond %{ENV:REDIRECT_STATUS} =""
RewriteRule ^(.*)$ /_FOLDER_NAME_/$1 [L]

htaccess   root   folder   rewrite   directory   ftp   server
Created by THE LOST WEB © 2009-2012