PDA

View Full Version : Changing access url



fishpix
03-31-2011, 09:27 AM
I recently installed concrete5 to build my site. When asked to specify destination url, I set it to www.mysite.com/lab. Now that I'm somewhat happy with what I've built, I would like it to show up on the main site, without the "/lab".

Can I change the access url post install?

Thanks!

Basil
04-06-2011, 01:19 AM
http://www.bluehostforum.com/showthread.php?16336-Main-site-redirect-to-sub-folder&p=67981#post67981
Instructions for using the .htaccess file under public_html to redirect your domain to a subdirectory.


RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.com$ # only apply to this domain
RewriteCond %{REQUEST_FILENAME} !-f # not an existing file
RewriteCond %{REQUEST_FILENAME} !-d # not an existing directory
RewriteCond %{REQUEST_URI} !^/lab/ # don't apply rules to the directory being directed to
RewriteRule ^(.*)$ /lab/$1 [L] # redirect everything else to lab

felgall
04-06-2011, 02:21 AM
Instructions for using the .htaccess file

Except that IIS doesn't use a .htaccess file but then BlueHost doesn't use IIS either and so the question is not relevant to this BlueHost help forum.