Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

What's causing this forced redirect?

0

56 views

I do not have root access to the site site.com but I have access to a subdomain me.site.com

I add an index.php (or any file and or folder for that matter) to the root folder (public_html) of this subdomain but everytime I try to go to me.site.com/index.php I get redirected to www.site.com

The .htaccess file in this subdomain is currently blank.

Why might this be happening?

Thanks!

asked May 20, 2011 11:54 pm CDT
posted via StackOverflow

1 Answer

0
 

I'm afraid that .htaccess in subdomain folder can't override the .htaccess in root, and at the moment the .htaccess in your root folder is current affecting the subdomain, in which it redirects all visits to the subdomain to root. Imagine that .htaccess from your subdomain folder redirect visits to the directory itself and .htaccess from root also redirects visits to subdomain back to the root itself, that's gonna be a mess.

Well, that's what I think about it in my opinion. Have you tried contacting the one who own root folder to consider about this?

answered May 21, 2011 12:23 am CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions