301 Redirect issue and SEO index.php

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
hardy1987
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Jul 24, 2017 12:40 pm

301 Redirect issue and SEO index.php

Post by hardy1987 » Mon Jul 24, 2017 12:55 pm

Hi there,


Please i am trying to understand i have added 301 for the main page and its working properly.

Example : http://www.example.com to http://example.com

for some reason when i am trying to redirect the inner pages its kicking me back to the home page with index.php

Example : if i am loading this link on my web browser http://example.com/test.html

It is kicking me back to home http://www.example.com/index.php.

I am not sure why is it doing that and it is adding index.php at the end of the main page.

Please help
Thank you

User avatar
DaveOzric
Joomla! Ace
Joomla! Ace
Posts: 1591
Joined: Sat May 22, 2010 10:29 pm
Contact:

Re: 301 Redirect issue and SEO index.php

Post by DaveOzric » Mon Jul 24, 2017 2:09 pm

How did you add the www to non www redirect?

hardy1987
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Jul 24, 2017 12:40 pm

Re: 301 Redirect issue and SEO index.php

Post by hardy1987 » Fri Jul 28, 2017 1:37 pm

This is the code i am using it


RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule (.*) http://www.example.com/$1 [L,R=301]

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30934
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: 301 Redirect issue and SEO index.php

Post by Per Yngve Berg » Fri Jul 28, 2017 7:22 pm

Did you put it in the correct location in the .htaccess file? The comments from Joomla says where to put it.

hardy1987
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Jul 24, 2017 12:40 pm

Re: 301 Redirect issue and SEO index.php

Post by hardy1987 » Fri Aug 11, 2017 11:16 am

Yes i did, still not working. I am not sure how it works.

Thanks

bangthetable
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Dec 13, 2016 10:53 am

Re: 301 Redirect issue and SEO index.php

Post by bangthetable » Tue Aug 22, 2017 9:47 am

The purpose of having htaccess file is redirecting the website from non www to www. But you have mentioned as reverse type. How it could be possible?

hardy1987
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Jul 24, 2017 12:40 pm

Re: 301 Redirect issue and SEO index.php

Post by hardy1987 » Wed Aug 23, 2017 6:29 am

Hi, Can i send you the link to be more specific on this?

thank you

hardy1987
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Jul 24, 2017 12:40 pm

Re: 301 Redirect issue and SEO index.php

Post by hardy1987 » Mon Sep 04, 2017 8:53 am

anyone here to help me


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”