Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
related stackoverflow.com/questions/1304492/… – AllInOne Jul 21 '14 at 23:46
up vote 3 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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