View Full Version : Cpanel redirect problems
heymrdj
May 1st, 2006, 20:41
The redirect system in cpanel isn't quite working right for me. Even manually editing the .htaccess file didn't fix the problem. I am trying to get / to redirect to /test/filled%20version.htm but the cpanel redirect always takes it to /test/filled%2520version.htm Why is cpanel adding in this 25? OF course when it does that it creates an error because there is no file by %2520. Any ideas?
heymrdj
May 1st, 2006, 20:53
Why is this now in the paid hosting section? I'm not asking a question for or relating to paid hosting. This is just about cpanel in general.
Doesn't really solve your problem but why not just use a javascript redirect?
Bruce
May 1st, 2006, 21:02
Why is this now in the paid hosting section? I'm not asking a question for or relating to paid hosting. This is just about cpanel in general.
It's web hosting related. You're likely to get more help here anyhow.
heymrdj
May 1st, 2006, 21:05
Doesn't really solve your problem but why not just use a javascript redirect?
Well i don't really have an old page to direct from. I built up a template package, but not thinking of the public_htm system. So if I moved them to where I didn't need a redirect, fixing all the images would be hell on earth to say the least.
GamePhreak
May 1st, 2006, 21:37
The redirect system in cpanel isn't quite working right for me. Even manually editing the .htaccess file didn't fix the problem. I am trying to get / to redirect to /test/filled%20version.htm but the cpanel redirect always takes it to /test/filled%2520version.htm Why is cpanel adding in this 25? OF course when it does that it creates an error because there is no file by %2520. Any ideas?
It's not necessarily cPanel's fault. The reason it does that is because the URL "code" for a percent sign is %25. cPanel takes %20, and thinks that that is actually what the URL is, and so turns it into %2520
Try using an actual space in the URL when setting up the redirect in cPanel.
NetCafe
May 2nd, 2006, 02:24
Have u tried actually renaming the file with the "25"?
<HTML>
<HEAD>
<script language="javascript"><!--
location.replace("http://redirectURL.com/redirectedpage.html")
//-->
</script>
<TITLE></TITLE>
</HEAD>
<body>
</body>
</HTML>
Just make that as index.html and it'll redirect to the page you choose.
heymrdj
May 2nd, 2006, 11:09
<HTML>
<HEAD>
<script language="javascript"><!--
location.replace("http://redirectURL.com/redirectedpage.html")
//-->
</script>
<TITLE></TITLE>
</HEAD>
<body>
</body>
</HTML>
Just make that as index.html and it'll redirect to the page you choose.
This worked perfectly, thanks alot.
No problem, glad I could help.
Powered by vBulletin® Version 4.1.7 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.