View Single Post
Old 05-22-2007, 12:20 PM   #12 (permalink)
aussieNickuss
Senior Member
 
Join Date: Nov 2006
Location: Ballarat, Victoria, Australia
Posts: 209
aussieNickuss is on a distinguished road
Send a message via MSN to aussieNickuss
Default

Quote:
Originally Posted by Minsc View Post
After a link you have some parameters on your site...

ex: "http://www.site.com/page.php?param=value&param2=value2"

I heard that search engines don't look over your site well if you have three or more of them.
So you should try to reduce the number of parameters to increase the odds of someone finding something on your site with, say, Google.
I see your using PHP, so most likely your on Apache? If so, then consider using the ModRewrite module.

With ModRewrite, you could convert "http://www.site.com/page.php?param=value&param2=value2" to "http://www.site.com/page/value/value2" with a simple bit of code like this in your .htaccess file....

Code:
RewriteEngine on

RewriteRule ^page/([^/.]+)/([^/.]+)$   page.php?param=$1&param2=$2
That code rewrites page/value/value2 to page.php?param=value&param2=value2. The user (and search engines) only see the neat URL, whereas the server sees the technical URL.

Read up more on ModRewrite.....

mod_rewrite, a beginner's guide (with examples)
aussieNickuss is offline   Reply With Quote