Mobile app version of vmapp.org
Login or Join
Samaraweera270

: The number of soft 404 errors is increasing because of redirects to the home page I have an increase in soft 404 errors. Using Apache in my .htaccess file I have: Redirect 301 /test.html‎

@Samaraweera270

Posted in: #GoogleSearchConsole #Htaccess #ModRewrite #Redirects #Soft404

I have an increase in soft 404 errors.

Using Apache in my .htaccess file I have:

Redirect 301 /test.html‎ /page/pop/test
Redirect 301 /about.html‎ /about


I have also tried:

Redirect 301 www.example.co.za/test.html‎ www.example.co.za/services/test


however whenever I go to:
www.example.co.za/test.html http://www.example.co.za/about.html


it just redirects to the home page

I also have: RewriteRule ^.*$ index.php [NC,L] in .htaccess

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

2 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

Neither of your attempts to get the syntax for your "Redirect 301" rules is correct. The format should be:

Redirect 301 /relative-uri fully.qualified/url

So:

Redirect 301 /test.html‎ www.example.co.za/page/pop/test Redirect 301 /about.html‎ www.example.co.za/about


As nathangiesbrecht says, your rewrite rule may also be interfering.

10% popularity Vote Up Vote Down


 

@Bryan171

The rule RewriteRule ^.*$ index.php [NC,L] in .htaccess is redirecting all requests to your index.php page (home page). Remove that, and the rest of your redirects should work as expected.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme