Page 1 of 1

Help Changing URL For SEO Purposes

Posted: Mon May 25, 2009 11:03 pm
by Maccsta
Hi!

For SEO purposes I want to get all my blog posts shortened from:

mydomain.com/index.php?/archives/252-HOT-NEW-BLOG-PRODUCTS.html

to:

mydomain.com/252/HOT-NEW-BLOG-PRODUCTS


I’ve change Permalink settings to achieve:

mydomain.com/index.php?/252/HOT-NEW-BLOG -PRODUCTS

But how do I get rid of the “index.php?” I want to do this for static pages & categories as well.

This is a 2 year old blog so are there any precautions I need to take? I’ve already installed the “HTML Link Metatags” plug-in to avoid duplicate content for where Google is concerned

Thanks for any help :)

Re: Help Changing URL For SEO Purposes

Posted: Tue May 26, 2009 6:47 am
by abdussamad
You will need to enable apache mod_rewrite. Go to serendipity admin page > configuration > appearance and options> URL rewriting and select mod_rewrite from the list box and click on the check & save button. Serendipity will then attempt to write a .htaccess file . You may need to enable write permissions for it.

Re: Help Changing URL For SEO Purposes

Posted: Tue May 26, 2009 10:12 pm
by Don Chambers
You may also want to read this thread.

Re: Help Changing URL For SEO Purposes

Posted: Wed Jun 10, 2009 4:56 pm
by Maccsta
Thanks Don & abdussamad for the replies :)

I have my blog post urls looking how I wish now. However how do I keep old URLs alive through redirection?

What code would I need to add to my htaccess file to redirect to the old blog urls to the new urls?

Re: Help Changing URL For SEO Purposes

Posted: Wed Jun 10, 2009 6:17 pm
by abdussamad
Maccsta wrote:Thanks Don & abdussamad for the replies :)

I have my blog post urls looking how I wish now. However how do I keep old URLs alive through redirection?

What code would I need to add to my htaccess file to redirect to the old blog urls to the new urls?
The old URLs will also work.

Re: Help Changing URL For SEO Purposes

Posted: Wed Jun 10, 2009 6:50 pm
by Maccsta
abdussamad wrote:
Maccsta wrote:Thanks Don & abdussamad for the replies :)

I have my blog post urls looking how I wish now. However how do I keep old URLs alive through redirection?

What code would I need to add to my htaccess file to redirect to the old blog urls to the new urls?
The old URLs will also work.
They do yeah, but I'd rather re-direct them to the new version of the URL.

Posts that are indexed in google currently just go to the old URL.