joomla .htaccess file rewrite rule explanation required
- by Vivek Chandraprakash
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