Using an .htaccess file, I want to make one specific URL have a shorter alias like this:

Original URL:


Alias to the original URL:


Note that both URLs should display the same content.


I think the following would work:

RewriteRule ^/index\.php/rss/rss1klik$ /index.php?option=com_obrss&task=feed&id=2:rss1klik&format=feed&Itemid=160 [L]

But this may look better:

RewriteRule ^/rss/rss1klik$ /index.php?option=com_obrss&task=feed&id=2:rss1klik&format=feed&Itemid=160 [L]

Then the URL would be http://mydomain.com/rss/rss1klik which is shorter/cleaner still.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.