Weird problem with 301 redirects

by Daones
5 replies
Have a new site designed but the weird thing is a few pages that are indexed in Google with the trailing slash at the end either come up as 404 or when I did a redirect checker they are redirecting to /usr/local/apache/htdocs/company is just one example.

Anyone know what could cause it redirecting to the actual directory? It is weird because most of all the website works its only a problem following links indexed in Google.

This is the current redirect rules:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^([^\.]+?)/?$ $1.php [NC,L]
</IfModule>
#301 #problem #redirects #weird

Trending Topics