Jump to content

?page=


jkewlo

Recommended Posts

We use an .htaccess file and a very simple rewrite to create different pages from one file:

 

RewriteEngine On
RewriteRule ^([a-z0-9]+)$ content.php?id=$1 [L]

 

This also helps us with search engine optimization, because the pages will index, because the urls are like this: http://www.mysite.com/page

http://www.mysite.com/anotherpage

 

instead of like this:

 

http://www.mysite.com/content.php?id=page

 

Crawlers will ignore the parameters (everything after the ?), so the only page that gets indexed is the default page.

Link to comment
https://forums.phpfreaks.com/topic/97168-page/#findComment-497726
Share on other sites

"Crawlers will ignore the parameters (everything after the ?), so the only page that gets indexed is the default page."

 

Incorrect. Not that it's a bad idea to optimize your URLs as described, but I've got hundreds of ?=blahblah pages indexed in all search engines.

 

yea i agree with BlueSkyIS,

not all search engines ignore that,

some do, but the major ones like google and yahoo dont

Link to comment
https://forums.phpfreaks.com/topic/97168-page/#findComment-497876
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.