.htaccess not working

Web hosting discussion, programming, and shared and dedicated servers.
16 posts Page 2 of 2
by tamino (at work, not logged in) » Tue Jun 07, 2011 11:41 am
Nope, it's still working. If he changed something in DNS, though, it may not look to you as if it's working for a while. :-/

The TTL on www.catvibe.net is two hours, so try again then maybe.

William, I think it would help other users looking at this topic if you posted the correct .htaccess syntax :-) Is the "RewriteRule" one correct, or is the "Redirect" one correct?
by imdvibe » Tue Jun 07, 2011 11:48 am
If it's working at this very moment for you, I just rewrote the code to look like this:
Redirect 301 / http://www.example.com/
by tamino (at work, not logged in) » Tue Jun 07, 2011 11:52 am
Yep, it's still working, as of a few seconds ago.

Cool. Sorry about giving you bad info on the syntax!
by imdvibe » Tue Jun 07, 2011 11:56 am
Weird, it works on my cellphone but not on my computer despite the fact that I emptied the cache and restarted my router. #ghoststhatwon'tleave...
Thanks for the help guys!
by williamt » Tue Jun 07, 2011 1:04 pm
tamino (at work, not logged in) wrote: William, I think it would help other users looking at this topic if you posted the correct .htaccess syntax :-) Is the "RewriteRule" one correct, or is the "Redirect" one correct?
There are many ways to to redirects. This is perhaps the simplest way.

Redirect 301 / http://www.example.com/
Sr. Systems Administrator @ sonic.net
by dman » Fri Sep 02, 2011 3:01 pm
Creating an index.php file with the following code and uploading it to your main web directory would work quite well for a redirect.

<?php
$new_url = "" #place the new URL between the quotes.
header("Location: ".$new_url);
?>
16 posts Page 2 of 2

Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 19 guests