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.
Hiding my website
Moderator: General Moderators
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
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
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
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
For what you're describing I go with what timvw says.... a symlink.
Depending upon what's in httpd.conf you may need to set the "Option" "Follow-symlinks" to On in .htaccess 
Code: Select all
ln -s /path/to/current/dir /path/to/false/dir