I need to redirect http://www.wjnj.com/ to http://www.wjnj.com/forum but when I set that up in cpanel I get an error that it will never find the page because of an endless loop. What am I doing wrong? thanks
not sure what you would be doing wrong as it is suppose to work with a cpanel redirect. You might want to google for an htaccess redirect.....a 301 redirect.... with that info you should have enough to google and get your answer.
The only reason I can think of that an endless loop would be created is if you had wjnj.com/forum forwarded to wjnj.com/ and wjnj.com/ forwarded to wjnj.com/forum. Double check your other redirect rules and make sure there are no other redirects for wjnj.com/
Thanks, is there another place to set re-directs other than the re-direct tab? Because there was none other set.
Easy, use a meta refresh: create a index.html in wjnj.com/ and insert this code: <html> <head> <title>Redirecting...</title> <META http-equiv="refresh" content="2;URL=http://www.wjnj.com/forum"> </head> </html> Good luck!
You could also use PHP: index.php (in your root folder): <?php header("HTTP/1.1 301 Moved Permanently"); header("location: http://www.wjnj.com/forum"); PHP:
Oh, boy....now I am confused with all my options. Can someone tell me what the easiest one is I tried adding: <?php header("HTTP/1.1 301 Moved Permanently"); header("location: http://www.wjnj.com/forum"); into index.php and I get an error I tried this one too: Easy, use a meta refresh: create a index.html in wjnj.com/ and insert this code: <html> <head> <title>Redirecting...</title> <META http-equiv="refresh" content="2;URL=http://www.wjnj.com/forum"> </head> </html> but no luck
I pasted it right on top of everything else and it didn't work...is there somewhere in particular I need to do it?
The above examples should work but I'm not too familiar with that. You can try javascript: <script language='javascript'> location='http://www.wjnj.com/forum'; </script> Also, I believe 301 redirect does not work because it's the same domain. 301 redirects to a different domain, not folder.
From Cpanel Domains --> Manage Redirects -->Add Redirect --> Permanent (301) Select: * http://(www.)? wjnj.com * leave next box empty * redirects to: wjnj.com/forum * Select Redirect with or without www. * Click Add Simple!