[support] Clean URL's

S.Theyagarajan theyaga at gmail.com
Sat Jul 14 04:18:57 UTC 2007


>
> RewriteEngine On
> Turns on mod_rewrite (providing it's been enabled in the apache
> configuration)
> RewriteCond %{REQUEST_FILENAME} !-f
> If the request is not for an existing file...
> RewriteCond %{REQUEST_FILENAME} !-d
> ... or for an existing directory..
> RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
> ...then redirect everything to 'index.php' in the current folder,
> assigning the requested url to the 'q' variable.
> The [L,QSA] part tells mod_rewrite to skip any remaining rules (L for
> Last) and append a querystring, if any.
>
> I'd recommend you take a look at the .htaccess from a default Drupal
> install; it's got a few extra rules that help with security (eg preventing
> access to .module files).
>
That was really informative ,i have been using .htaccess witthout being able
to understand .thanks rob :-)


thanks
taggy
http://theyagar.info
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
S.Theyagarajan
Under Graduate
Department Of Computer Science And Engineering
National Institute Of Technology , Trichirapalli
India 620015
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20070713/18b96b3f/attachment.htm 


More information about the support mailing list