cableghost
Member
Posted 2 years ago #
I have tried the following redirect methods, but receive different errors for each. What redirect code should work 100% of the time?
redirect 301 /index.html http://www.site.org/index.php
-brwoser redirect error
RewriteEngine on
RewriteRule index\.html index.php [NC,R]
-site 404 error
<META HTTP-EQUIV="refresh" CONTENT="1;URL=http://site.org/index.php">
-redirect loop- keeps looping back to index.html
-Scott
italianst4
Member
Posted 2 years ago #
The first method should work. You should hopefully be making changes to your .htaccess file in the root of your site. Here's a little bit more direction on doing so:
http://www.isitebuild.com/301-redirect.htm
I know this may sound simple, but make sure you have an index.php file in the root to be redirected to.
Hope this helps!
~Anthony
cableghost
Member
Posted 2 years ago #
Thank you
I realized I had to add the index.html redirect inside of the index.php utilizing 301 redirect plug-in. Not certain why it would not work w/ the htaccess file.
-Scott