Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any downsides to using mod-rewrite?

Status
Not open for further replies.

gmail2

Programmer
Jun 15, 2005
987
IE
I've been doing some searching here and on other sites and it seems that using dynamic content can cause problems for search engines in that they don't like URL's with ? in them. So then I found out about mod-rewrite, so that instead of authors.php?authorid=1 I can have authors.php/1/index.php or something similar. What I want to know is - is this really as good as it sounds? Are there any downsides from a SEO point of view? Can search engines even tell if you're using this? Because escentially isn't this URL cloaking? Which I thought search engines din't like.

Also, one other question. Somebody told me that it's better to use .html extension rather than .php because search engines will know that .php is (probably) dynamic content. Personally I would have thought that they're wrong - seing that I could just as easily configure my web server to parse .html files with a php parser and therefore "fool" the search engines - if it is true that they prefer html file extensions. So my question is, if I do use mod-rewrite, should I rewrite the url as .php or .html extension?
 
SE "friendly" URLs are NOT a magic bullet for SEO, "dynamic" URIs get crawled perfectly well.


SEs don't rank php pages lower than .html because they are all html after being served.

SE "know" that URIs with parameters are dynamic, other than that asp, php, cfm pages can all be static

the downside is for SEO, there's no real upside!


Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
>> SE "friendly" URLs are NOT a magic bullet for SEO

Yes, I know that changing the URL's won't rank the pages any higher, I just thought that it might help get them indexed in the first place. So I guess the only real advantage is from a user's point of view then - that they can just put in /whatever rather than /myfile.php?item=whatever

Yea, I had a feeling that the file extension wouldn't affect rating, just wanted to check though. Thanks for that
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top