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

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