Mobile app version of vmapp.org
Login or Join
Martha676

: How can I create a shorter alias URL to a longer URL using an .htaccess file? Using an .htaccess file, I want to make one specific URL have a shorter alias like this: Original URL: mydomain.com/index.php?option=com_obrss&

@Martha676

Posted in: #Htaccess #UrlRewriting

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

Original URL:

mydomain.com/index.php?option=com_obrss&task=feed&id=2:rss1klik&format=feed&Itemid=160


Alias to the original URL:

mydomain.com/index.php/rss/rss1klik


Note that both URLs should display the same content.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

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 mydomain.com/rss/rss1klik which is shorter/cleaner still.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme