Forum Moderators: Robert Charlton & goodroi
example.com/dir/widget_short_description.html
I want to change it to
example.com/dir/1.html
I have 6000+ of these URL's. How? Should I do this? I want to this, because it's easier for me to add articles. The url number would just be the artile id.
Those urls' are created by mod_rewrite so they aren't actual html files.
Should I just redirect all the whole url's to my home page instead? Cuz honestly I have no idea how I am going to do it. I do have sitemap setup for bots etc.
Anyways I'm not sure. Thank you.
[edited by: MLHmptn at 8:09 am (utc) on Feb. 24, 2009]
It may be easier for you, but will be for your users? It the "short_description" is short (it doesn't make the URL too large and difficult to type) I see no reason to do the move.
And if it's too large, then make it short, but stil descriptive. As I begin to type in the browser bar, it would be easier for me to recognize it.
You got banned?
That sucks. 80% of my traffic is SERP. I'm #1 on Yahoo, on almost every keyword that deals with my niche. I'm usually top 5 on google.
How would I do that with sitemaps? And yea it's the standard XML format.
What about my users. How would I redirect them to the correct url? I don't think I can program it into my script. Is there another way?
How would I do that with sitemaps? And yea it's the standard XML format.What about my users. How would I redirect them to the correct url? I don't think I can program it into my script. Is there another way?
.htaccess
Well I do belive the simplest way would be to import your sitemap into a spreadsheet with before and after sitemaps (based on your new mod_rewrite directives) and insert a RedirectPermanent (301) redirect in a formula then export it and insert into your .htaccess file like such.
RedirectPermanent /oldURLfromyourexisitingsitemap/ http://www.example.com/newURLfromyournewsitemap/
HTH!
[edited by: tedster at 2:47 am (utc) on Feb. 25, 2009]
[edit reason] switch to example.com [/edit]
Actually, I hope you are in my industry and get loads of traffic and go for it. Best you experiment to make it easier for yourself - and then easy for me.