Difference between revisions of "URL Rewriting"

From GeeklogWiki
Jump to: navigation, search
m
m (Fixed formatting)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Geeklog includes a simple but useful URL rewriting feature which can help make your site more crawler friendly (i.e. the URLs of your site are more likely to be picked up by the search engine's indexing bots). Currently, this feature is only supported for URLs to stories and by the Static Pages plugin.
 
Geeklog includes a simple but useful URL rewriting feature which can help make your site more crawler friendly (i.e. the URLs of your site are more likely to be picked up by the search engine's indexing bots). Currently, this feature is only supported for URLs to stories and by the Static Pages plugin.
;URL rewriting means that your URLs will look like this
+
 
;<center>http<nowiki>:</nowiki>//www.geeklog.net/article.php/20021022234959146</center>
+
URL rewriting means that your URLs will look like this
;instead of like this
+
<center>http<nowiki>:</nowiki>//www.geeklog.net/article.php/20021022234959146</center>
;<center>http<nowiki>:</nowiki>//www.geeklog.net/article.php?story=20021022234959146</center>
+
instead of like this
;While some search engines will pick up the second form, Google seems to prefer the first format and completely ignores the second format.
+
<center>http<nowiki>:</nowiki>//www.geeklog.net/article.php?story=20021022234959146</center>
;<strong>Note:</strong> This feature may not work with all web servers. It is known to work with Apache (all versions) and known <em>not</em> to work with IIS (at least some versions). Please try it out before you go public with your site.
+
While some search engines will pick up the second form, Google seems to prefer the first format and completely ignores the second format.
 +
 
 +
<strong>Note:</strong> This feature may not work with all web servers. It is known to work with Apache (all versions) and known <em>not</em> to work with IIS (at least some versions). Please try it out before you go public with your site.
  
 
{| border=1 cellspacing=0 width=100%
 
{| border=1 cellspacing=0 width=100%
Line 18: Line 20:
  
 
'''Note''': if you're running Apache 2.0, the apache directive "AcceptPathInfo" must be "on". You can insert this into a .htaccess file. A link to the description of this directive is here: http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
 
'''Note''': if you're running Apache 2.0, the apache directive "AcceptPathInfo" must be "on". You can insert this into a .htaccess file. A link to the description of this directive is here: http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
;[[The_Geeklog_Configuration_File|Back to The Geeklog Configuration File]]
+
 
 +
 
 +
[[The_Geeklog_Configuration_File|Back to The Geeklog Configuration File]]

Latest revision as of 13:51, 29 May 2009

Geeklog includes a simple but useful URL rewriting feature which can help make your site more crawler friendly (i.e. the URLs of your site are more likely to be picked up by the search engine's indexing bots). Currently, this feature is only supported for URLs to stories and by the Static Pages plugin.

URL rewriting means that your URLs will look like this

http://www.geeklog.net/article.php/20021022234959146

instead of like this

http://www.geeklog.net/article.php?story=20021022234959146

While some search engines will pick up the second form, Google seems to prefer the first format and completely ignores the second format.

Note: This feature may not work with all web servers. It is known to work with Apache (all versions) and known not to work with IIS (at least some versions). Please try it out before you go public with your site.

Variable Default Value Description
url_rewrite false Enable (true) or disable (false) URL rewriting.

Note: if you're running Apache 2.0, the apache directive "AcceptPathInfo" must be "on". You can insert this into a .htaccess file. A link to the description of this directive is here: http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo


Back to The Geeklog Configuration File