SEO: Can I stop index.php from rendering?
Permalink
Hi All,
Congratulations on being such an active and effective community!
Now, here's my problem. I'm trying to avoid my client's home page being rendered onhttp://www.site.com/index.php. Google is indexing on index.php which affecting the page rank.
I'm wondering if I can do a 301 redirect from index.php to root with out affecting the operation of Concrete 5. Or is there something else I can try?
This is just my second Concrete 5 project - loving it so far.
Thanks,
Gordon
Congratulations on being such an active and effective community!
Now, here's my problem. I'm trying to avoid my client's home page being rendered onhttp://www.site.com/index.php. Google is indexing on index.php which affecting the page rank.
I'm wondering if I can do a 301 redirect from index.php to root with out affecting the operation of Concrete 5. Or is there something else I can try?
This is just my second Concrete 5 project - loving it so far.
Thanks,
Gordon
Thanks Steev!
Not quite what I'm looking for.
I want the page to be available to Google - its the home page! But I don't want it to render on the urlhttp://www.site.com/index.php. I'd like that url to 301 redirect to the root -http://www.site.com - and render that.
Or some the same thing via an alternative means.
But I think that might screw up other parts of Concrete5 I'm not aware of.
Cheers,
Gordon
Not quite what I'm looking for.
I want the page to be available to Google - its the home page! But I don't want it to render on the urlhttp://www.site.com/index.php. I'd like that url to 301 redirect to the root -http://www.site.com - and render that.
Or some the same thing via an alternative means.
But I think that might screw up other parts of Concrete5 I'm not aware of.
Cheers,
Gordon
Hi,
Have you enabled pretty URL's?
Go to: Dashboard - Sitewide Settings - Linking and check 'Enable Pretty URLs' and save.
Have you enabled pretty URL's?
Go to: Dashboard - Sitewide Settings - Linking and check 'Enable Pretty URLs' and save.
Yup,
Pretty Urls have always been enabled!
but the page still renders athttp://www.site.com/index.php
Thanks,
Gordon
Pretty Urls have always been enabled!
but the page still renders athttp://www.site.com/index.php
Thanks,
Gordon
Have put the generated code in your .htaccess file?
The first part of what Steve said was the answer to your question. Turn on Pretty URL's in the dashboard and the site wont display the index.php any more.
Jon
Jon
Actually, even with pretty URIs set, your site will still respond on (and display)http://site.com/index.php if that was the actual URI requested.
If you're really concerned about duplicate content, you need to address in your site's .htaccess file using the redirect directive.
If you're really concerned about duplicate content, you need to address in your site's .htaccess file using the redirect directive.
Go to: Dashboard - Sitewide Settings - Linking and check 'Enable Pretty URLs' and save.
For pages you don't want indexing in Google, in sitemap pick the page, pick properties, pick 'Custom attributes', from drop down box choose 'Exclude From sitemap.xml', tick the box and save.
When you've finished you should possibly re-index your site from 'System & Maintenance'
Hope that helps
Steev