Hello...I've been dealing with this issue for about 72 hours non-stop and still cannot find the appropriate solution for my 301 issue.
The scenario is we just redesigned our company website and I cannot get the 301 redirect codes to work correctly. I get 404 errors for every url i wrote code for.
As far as I understand it, you are not supposed to modify or touch any existing existing code in the htaccess file. I simply added all the 301 codes at the bottom. Here is the a brief sample of the existing htaccess file, followed by what I added:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^videotracker.com
RewriteRule (.*) [
videotracker.com...] [R=301,L]
Redirect permanent /wp-content [
videotracker.com...]
Redirect permanent /avidexams [
videotracker.com...]
Redirect permanent /index080818.php [
videotracker.com...]
SetEnvIfNoCase User-Agent "^Access" bad_bot
SetEnvIfNoCase User-Agent "^Agent" bad_bot
SetEnvIfNoCase User-Agent "^Aleksika" bad_bot
<Limit GET POST>
Order Allow,Deny
Allow from all
Deny from env=bad_bot
#internetseer
Deny from 63.238.163.76
#spammer
Deny from 200.63.42.136
Deny from 91.224.160.92
AddType text/html .html
AddHandler server-parsed .html
AddType text/html .asp
AddHandler server-parsed .asp
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
ErrorDocument 404 [
videotracker.com...]
HERE IS WHAT I ADDED DIRECTLY AFTER THE LINE ABOVE...WITH A LINE IN BETWEEN (ABOUT 100 LINES OF THE SAME CODE FOLLOW).
Redirect 301 /working.php?pg=avidexams [
videotracker.com...]
Please help. We had about 1500 pages indexed and we really don't want to lose any business we've worked hard to build.
Thanks.