Page 1 of 1
301 redirects
Posted: Sat Mar 22, 2008 4:38 pm
by swapdude
Hi,
I previously had my site in default mode
http://www.domain.com/index.php/pageonsite/
But I recently changed the setting to pretty urls. But my site is already indexed by the search engines.
Is there anyway to implement 301 redirects for old pages in order to prevent duplication of pages in the search engines.
Technically the old pages would still work even after configuring the CMS for pretty URLS.
Regards,
swap
Re: 301 redirects
Posted: Tue Mar 25, 2008 9:16 pm
by Pierre M.
Hello,
this is a webserver issue, not specific to CMSms.
Have you searched these forums for '301' ? There are already posts on this topic.
Pierre M.
Re: 301 redirects
Posted: Wed Mar 26, 2008 4:31 pm
by swapdude
This is not a server issue.
My Original Site had internal pretty urls enabled
so the pages were
http://www.site.com/index.php/pagename
Now i enabled the mod_rewrite and the urls are
http://www.site.com/pagename
My problem is that all the pages in search engines are indexed as /index.php/pagename
How do i Set up mod_rewrite to redirect to /pagename
Regards,
Re: 301 redirects
Posted: Wed Mar 26, 2008 6:31 pm
by Pierre M.
swapdude wrote:
But I recently changed the setting to pretty urls. But my site is already indexed by the search engines.
Is there anyway to implement 301 redirects for old pages in order to prevent duplication of pages in the search engines.
This is a webserver issue. This is management of the exposure of the public URLs of your site,
whatever CMS you are using behind.
You should search Google to learn how to make 301 redirect inside your webserver.
swapdude wrote:
My problem is that all the pages in search engines are indexed as /index.php/pagename
How do i Set up mod_rewrite to redirect to /pagename
See ? your question is about redirects inside the webserver.
Just google the Redirect directive of Apache.
Pierre M.