On 2005-11-22, Dan Horne <[EMAIL PROTECTED]> wrote:
> On a related note - I'd like to hear of any ideas other than mod_rewrite for
> getting around the
>
> http://del.icio.us/cgi-bin/recipes.cgi?username=markjugg;tag=vegan;tag=recip
> es
>
> style of URLs, which are often ignored by search engines.
Drupal uses one simple copy/paste mod_rewrite recipe, and then Drupal
handles the rest internally.
RewriteEngine On
RewriteBase /
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
Since mod_rewrite is actually voodoo, I can't tell you exactly what that does,
but I can tell it passes everything through an index.php script.
In our paradigm, we might pass everything to a smarter
CGI::Application::Dispatch
script/module, which then handles the rest.
Mark
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]