I am working on creating my first CMS search engine. I know that perhaps one of the biggest keys to having an SEO site is to have search engine friendly URLs. So, having a link like this:
http://www.mysite.com/product/details/page1
will result in significantly better ranking than that:
http://www.mysite.com/index.php?pageID=37
I know that for creating URLs such as the first, I have one of two options:
- use web technology, in this case PHP, to create a directory structure
- use the Apache add-in
mod_rewriteto port these URLs to the PHP processor
As for PHP, I'm still comfortable. However, I think the first option will be more difficult to maintain.
Can someone show me how to write a file .htaccessthat will be:
- silently directs the SEO URL to the script processor
- not redirected if the requested URL is the actual directory on the server
Is there a better way than I'm trying?
source
share