We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Google shows my URL with .../index | Forum

Topic location: Forum home » Support » General Questions
Outperformer 3000
Outperformer 3000 Apr 25 '18
Hi, Google shows my URL in search results like this:

www.xxx.net/index

If I send new crawling, then some weeks the URL will be shown fine (without /index). But then it shows URL with /index again?

How can I solve that?

The Forum post is edited by Outperformer 3000 Apr 25 '18
IntrigU
IntrigU Apr 25 '18
/index and your site root page serve the same content, which is not favoured well by most search engines. You probably want to redirect all /index requests to your site root.


Here is the re-write rule:


RewriteEngine On

RewriteRule ^index$ /$1 [R=301,NC,L]

The Forum post is edited by IntrigU Apr 25 '18
Outperformer 3000
Outperformer 3000 Apr 26 '18
Thank you IntrigU. I used another code, that works:


RedirectMatch /index$ https://xxxxx.xxx

Is yours better for search engines?