I have been using mod_rewrite in some sections of my website. But recently I've noticed that none of those sections, where I have used mod_rewrite, were indexed by google. Are these so called search engine friendly urls that search engine friendly? Any comments? BTW, the problem is only with Google.
Hi Aragorn: I use mod rewrite all of the time with absolutely no problems with Google. Have you checked all of your internal links to be certain they are linking to the correct url? Have you checked to see if Google has the non-rewritten forms of the url's/pages cached?
i use mod rewrite also and i have over 20000 pages indexed in google, so no problems here. You may have been hit with a duplicate content penalty. I had to program my pages so that if they were not at the rewrite url it would do a 301 redirect to the correct one
Have you made sure you have linked well to these rewritten urls? Putting the links to these pages on your index page would ensure they get crawled by google sooner. Double-check everything, url rewriting can be a real pain sometimes.
hi, i have used mod rewrite in my whole site which is dynamic and pages comes as query string.and all pages are working well no probs at al all and i m getting good SERP for all the pages.i think u need to submit google site map and re-structure your internal linking so it will more helpful to u for indexing the pages.
mod_rewrite can be used in a variety of modes, and all are transparent to google (they cant know what rewrites are you doing in you apache).
Thanks for the response. I think I've found out the problem. Infact there are two problems. 1. All the pages were having the same title, meta keywords / description 2. I had programmed it such that, the pages are accessible by rewritten form and also directly. And some of the non - rewritten urls were cached. Since the pages did not have much difference, I think google considers them to be duplicate pages.
If you want to rewrite sites with session ids into sites with cleaner URLs, there is no problem with that
i used mod_rewrite in my site and i did not experience any problem yet in SE. Otherwise is very useful in redirecting Pages as long as it's not cloak.
Nobody knows whether you are using rewritten urls: no redirect or anything is sent, it all just happens in the server. Yes, you need to 301 the non-rewritten urls to the rewritten ones, and don't block the non-rewritten with robots.txt etc: just let everyone follow the 301 or they will keep the indexed content for that url and you will have dupe content. Use mod_rewrite to send the 301s. Things like yahoo will still be looking for it (and following the redirect) in 12 months!