I Have done a site but want to redirect it to another subdomain in other language.The site is done in CAKE PHP,so the problem i am facing is I have given the href to subdomain.But the URL is concatenated with the variable 'url' set in the config.php file of Cake Php.That's the reason why it's throwing error. Please suggest me how can I do this stuff. Thanks in Advance
+1
A:
The problem is that you're providing what appears to be a relative URI. The current path is prepended to that value. Using your anchor tag from the comment above, it should look like this:
<a href="http://www.fr.subDomain.com/app/webroot">
Rob Wilkerson
2009-08-09 12:20:55
Thanks for your support...!!!
Nishant Shrivastava
2009-08-15 12:21:06
A:
Rob's got it right.
Don't forget the 'http://' part of that link or the browser will interpret it as a relative link.
If your domain is www.exmaple.com
<a href="/app/webroot">
is exactly the same as <a href="http://www.example.com/app/webroot">
The first is a relative link. The second is an absolute link.
txyoji
2009-08-09 13:15:45