tags:

views:

304

answers:

2

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"&gt;
Rob Wilkerson
Thanks for your support...!!!
Nishant Shrivastava
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"&gt; The first is a relative link. The second is an absolute link.

txyoji
Thanks for your support...!!!
Nishant Shrivastava