joomla .htaccess file rewrite rule explanation required

Posted by Vivek Chandraprakash on Stack Overflow See other posts from Stack Overflow or by Vivek Chandraprakash
Published on 2010-02-08T20:00:31Z Indexed on 2010/04/08 8:03 UTC
Read the original article Hit count: 405

Filed under:
|
|

Hi,

I'm trying to understand the following lines in joomla's .htaccess file. Can someone explain this please

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !^/index.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
#RewriteRule (.*) index.php
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

I want to do some custom redirects

for example if a url is like this example.com/subdirectory1 i want to redirect to some article. tried adding this line in the .htaccess file

RewriteRule ^somepath index.php?option=com_content&view=article&id=1&Itemid=12

but for some reason the article shows the title even though it's not supposed to show. when i access using the long url string the title doesn't appear if i rewrite it appears.

Please help.

-Vivek

© Stack Overflow or respective owner

Related posts about joomla

Related posts about .htaccess