.htaccess to cloak a folder

Status
Not open for further replies.

EdenWeb

Member
I've installed a CMS in a folder on a client's site and naturally enough the folder name forms part of the URL. Would it be possible to skip or hide that folder in the URL via .htaccess ?

IE Go from

mydomain.com/cms-install-folder/service/page.htm

into

mydomain.com/cms-folder/service/page.htm
 

mneylon

Administrator
Staff member
If it's running on Apache you *could* use mod_rewrite to magically replace all instances of "cms-install" with "cms-folder" or whatever ..
 

Forbairt

Teaching / Designing / Developing
Would something like
Code:
RewriteEngine on
RewriteRule ^/$ /cms-install-folder/

do the job in the root folder ?
 

EdenWeb

Member
Thanks for getting back to me. Looks like .htaccess trickery will cause too many problems. I can install and build in a test folder
on the server and then drag the files onto the root when done. Just changing some config paths will sort my problem.
 
Status
Not open for further replies.
Top