: 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&
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.
More posts by @Martha676
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.