Help - Search - Members - Calendar
Full Version: redirecting subdomain with .htaccess
The Planet Forums > Control Panels > Plesk
mushu
I am using the subdomain m.mysite.com to redirect vi .htaccess

-placed in:
/subdomains/httpdocs/.htaccess

with content:
# Redirects (from site path to URL)
Redirect http://m.mysite.com/ http://www.mysite.com/forum/mo/index.php?type=wap

When i browse on my mobile it takes me to :
403: Access denied

Could anyone please advise the proper code and file location for .htaccess?
Squire
I believe you've got a syntax error in your redirect mushu. Going from memory here, but the first http: bit shouldn't be there. It should only be pointing to the root level to redirect everything or to a specific file path from the root of the subdomain.

Something along the lines of

CODE
Redirect 301 / [url="http://www.mysite.com/forum/mo/index.php?type=wap"]http://www.mysite.com/forum/mo/index.php?type=wap[/url]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.