News:

LVCS.NET offers low cost domain registration services.

Main Menu

Domain name for sub-directory

Started by Mojo, December 04, 2005, 03:09:59 PM

Previous topic - Next topic

webzone (archived)

First of all, you need to change the two occurrences of "DIRECTORY".

If it still doesn't work, leave the code in your /.htaccess and add the following code in /iceman90/.htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.)?iceman90.com$
RewriteRule ^(iceman90/)?(.*)$ http://www.iceman90.com/$2 [L,R=permanent]

Daniel


milkywaylynx

I'm having a problem with this...

In root/.htaccess:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?uhsamc\.hopto\.org$
RewriteRule ^(club\/)?(.*)$ club/$2 [L]

I also put this in root/club/.htaccess, but it doesn't make a difference (even without it, the url still works):

RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.)?uhsamc.hopto.or$
RewriteRule ^(club/)?(.*)$ http://uhsamc.hopto.org/$2 [L,R=301]

"uhsamc.hopto.org" should point to root/club. This works. However, when I try to access a folder called "test" in club, if I type in "uhsamc.hopto.org/test", it redirects me to "uhsamc.hopto.org/club/test". Any way to allow me to type in "uhsamc.hopto.org/test" and not have it redirect to "uhsamc.hopto.org/club/test"?