PDA

View Full Version : .htaccess


chiefbutz
07-16-2005, 08:34 PM
Not sure if this is where to place it, but ok here goes.

For my website I use URL's liek index.php?pg=blahblah I have found the search engines hate that, is there anyway to make it so that search engine spiders see something else that they like to index?

iota
07-17-2005, 09:50 AM
http://www.xseo.com/search-engine-tutorials.htm

http://www.xseo.com/xseotutorials.htm

http://www.monsterwebpromotion.com/

http://digital-web.com/articles/seo_and_your_web_site/

Hope you enjoy it.

One way I've heard is :

Create a link page such as links.htm

In that page , list all the your site links and include full true descriptions of these links.

Submit that links page to the Search Engines. When they index that page, they'll see all relevent info and you'll get no bad remarks for your site.

chiefbutz
07-17-2005, 02:18 PM
Ok, well that helps.. sort of, but that still didn't anwser my qustion.

schleppel
07-17-2005, 03:18 PM
RewriteEngine On
RewriteRule ^$ index.php?pg=home [QSA]
RewriteRule ^([a-zA-z0-9_-.,])/?$ index.php?pg=$1 [QSA]


youdomain.com/ becomes index.php?pg=home
youdomain.com/somewhere/ becomes index.php?pg=somewhere
youdomain.com/cantact/ becomes index.php?pg=contact
etc.

Eidt: or if you only want a few pages done like this you can write seperate rules for each:

RewriteEngine On
RewriteRule ^$ index.php?pg=home [QSA]
RewriteRule ^contact/?$ index.php?pg=contact [QSA]
RewriteRule ^gallery/?$ index.php?pg=some_other_variable [QSA]

Hope that hasn't confused you.

chiefbutz
07-17-2005, 06:48 PM
ok, is there anyway to limit bots to using the chnageing of the URLs or is it all or none sort of thing.

schleppel
07-17-2005, 07:00 PM
The simple answer is no. Why would you want people to see the index.php?pg=whatever anyway?

chiefbutz
07-17-2005, 07:07 PM
nevermind