PDA

View Full Version : Subdomain htacess file


ut3hound
11-25-2007, 06:27 PM
I am trying to find the .htaccess file for my subdomain so I can stop people from being able to use the subdomain to get to my addon domain. The instruction to do that (found here (http://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&id=152))
say:

Put this in the .htaccess file located at the subdomains folder


RewriteEngine On

RewriteCond %{HTTP_HOST} ^subdomain.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.subdomain.domain.com$
RewriteRule .* http://otherdomain.com/ [r]

However, I cannot find an .htacess file in my subdomain folder. I look in my www/subdomain folder but do not see anything. Should I be looking somewhere else?

Thanks.

felgall
11-25-2007, 08:25 PM
What are you using to look for the file?

A dot on the front of a filename indicates a hidden file so that depending on what you are using it may not show up in the list.

You may not currently have a .htaccess file in which case you'd need to create one.

ut3hound
11-26-2007, 04:52 AM
What are you using to look for the file?

A dot on the front of a filename indicates a hidden file so that depending on what you are using it may not show up in the list.

You may not currently have a .htaccess file in which case you'd need to create one.

Hi Felgall. I am using Filezilla.

I can find one .htaccess file in the www/ directory but I'm assuming that one is just for my main domain. Or is this the one I am looking for?

Basil
11-26-2007, 05:04 AM
Just make a text file called .htaccess and stick it in the folder.