Forum Moderators: Robert Charlton & goodroi
[edited by: brotherhood_of_LAN at 12:57 am (utc) on Sep 22, 2014]
[edit reason] used example.com [/edit]
[edited by: brotherhood_of_LAN at 4:07 am (utc) on Sep 22, 2014]
[edit reason] delinked [/edit]
This redirection should be 301 and not 302.
With regards to your problem, when you changed your URLs should be root-relative, that is, they should start with /
For example:
href="/cart/something.pl?..."
and not:
href="cart/something.pl?..." which appears you have and which then created cart/cart/something.pl URL.
With regards to index.html, does index.html exists in the /cart/ folder?
<HTML>
<HEAD>
<TITLE> </TITLE>
<meta http-equiv="Refresh" content="0; url=cart.cgi">
<head>
<!-- Mimic Internet Explorer 9 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
</HEAD>
<script language="javascript1.1">
<!-- Hide
location.replace ('cart.cgi');
// end hide -->
</script>
</HTML>
Or is /cart/ a virtual folder (only in URL, not physically on the server?)
If index.html does not physically exists in the physical /cart/ folder, then what does your server returns? Is it 200 OK and shows index.html from the root folder? Or is it 404 (which it should be if index.html does not exist in /cart/ folder). This may indicate issues with your .htaccess or with URL Rewrite module your CMS is using.
[edited by: Robert_Charlton at 7:00 pm (utc) on Sep 24, 2014]
[edit reason] removed link, per forum Charter [/edit]
[edited by: aakk9999 at 11:11 pm (utc) on Sep 25, 2014]
[edit reason] Unlinked example [/edit]
Frankly I'm surprise more people don't use this method.