I am working with a developer who is performing a mod rewrite. My question is which is the better way to handle the following url? Or is their a better way than what is listed. Currently we have this: http://www.danforthdiamond.com/jewe...ets/?cat_id=150 … and changing it in the browser address bar to: http://www.danforthdiamond.com/jewe...celets/cat/150/ Should I change the links so that it directly links to /cat/150/ or should I leave it as ?cat_id=150 and allow the mod-rewrite to worry about changing it?
The point of mod_rewrite for SEO purposes is to make the URLs seem static to Search engines and visitors so they can easily bookmark them. Leaving your URLs with "?" in them is like doing nothing. You might as well not use mod_rewrite. Yes. p.s. am I the only one that finds it odd that an "SEO company" representative is asking questions such as these?
You could finish the url with /category or name-of-the-category.html RewriteRule ^jewe...celets category.php?cat_id=150 [L] or http://www.danforthdiamond.com/jewe...ets/?cat_id=150 RewriteRule ^([[:alnum:]].+)/?cat_id=([[:alnum:]].+)$ category.php?cat_id=$2 [L]
The Second Method is better way as it is Search Engine Friendly. You have to change the URLs in the pages or a script written by your coder who will handle all the changes. Yes It is possible to have the file names end with .html or .htm extention Just read our respect Nintendo FAQ about mod_rewrite at: http://forums.digitalpoint.com/showthread.php?t=23044
Man at the time i posted my reply there is already 2 post .. Way to GO DP thats why i Love DP Memebers alot they are so friendly and one step ahead in helping each other. Cheers.
Thanks, SoulHealer, that is exactly what the programmer needs. Best forum for seo on the web in my opinion.
I would rewrite to http://www.danforthdiamond.com/jewe...celets/150/ and miss the cat bit out. There is no point making the url's longer than they need to be.