Page 1 of 1
Hiding my website
Posted: Fri Dec 16, 2005 2:46 pm
by onion2k
Ok, I don't mean hiding it completely.. that'd be silly.
I want my users to see
http://www.domain.com/index.php .. but in reality the page is
http://www.domain.com/v_1_21/index.php .. ideas? I need to have versions of the site I can switch between very easily. I don't have access to the httpd.conf file to change the virtual host directory .. but I can play with .htaccess to my heart's content.
Posted: Fri Dec 16, 2005 2:54 pm
by josh
if they allow overrides, mod_rewrite, or have index.php just decide which page to show, then include it
From the way you worded your question mod_rewrite or some other kind of URL rewriting tool is what you want, virtualhosts / alias is probably better though
Posted: Fri Dec 16, 2005 4:14 pm
by timvw
Another option is to make a symlink to the real file
Eg: pubwww dir is configured to be under /home/timvw/services/www
I have all my pages in /home/timvw/src/timvw.madoka.be
If i want to switch to the pages in /home/timwv/src/test.site i simply change the symlink...
Posted: Fri Dec 16, 2005 4:35 pm
by jayshields
I have all my domains with 123-reg, and they allow web forwarding setup from within the cpanel. From there you can choose non-framed forwarding, framed web forwarding, framed web forwarding to a single page, etc.
I think you would want to choose framed web forwarding, that's what I use for all my sub dir's that I want to look like real domains.
Obviously your domain provider might not offer these services, but mine does so I presume you're in with a chance

Posted: Fri Dec 16, 2005 7:10 pm
by Chris Corbyn
For what you're describing I go with what timvw says.... a symlink.
Code: Select all
ln -s /path/to/current/dir /path/to/false/dir
Depending upon what's in httpd.conf you may need to set the "Option" "Follow-symlinks" to On in .htaccess
