Forum Moderators: phranque

Message Too Old, No Replies

.htaccess Help needed very badly

         

Penguin Nation

5:28 am on Aug 24, 2009 (gmt 0)

10+ Year Member



Please help me, I have no idea where this should go, but earlier today I was working on my site and made a Construction page. I made the page redirect to index every 5 seconds, then .htaccess redirect index to construction. But when I took off the 301 redirect in .htaccess, the construction page won't go to index, and when I go to index it redirects me to construction with no 301 redirect in the .htaccess. Heres what I put in my .htaccess:

redirect 301 /index.php [mysite.com...]

then I put

#redirect 301 /index.php [mysite.com...]

to stop the redirect and it quit working. I worked earlier today just fine. Help would be SO VERY MUCH appreciated.

EDIT:

I just figured out that I can go to index.php manually, but the javascript redirect seems to think that the htaccess is still redirecting. How can I get around this?

Java:

<head>
<link rel="stylesheet" href="styles.css" type="text/css" />
<script type="text/javascript">
<!--
function delayer(){
window.location = "http://www.mysite.com/index.php"
}
//-->
</script>
</head>
<body onload="setTimeout('delayer()', 5000)">

wilderness

3:01 pm on Aug 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This should be addresses (or moved) over to the Apache Forum (in spite of the Java being included).

Regarding:

But when I took off the 301 redirect in .htaccess, the construction page won't go to index, and when I go to index it redirects me to construction with no 301 redirect in the .htaccess.

Did you remember to flush your browser cache prior to testing the "remark out" line?