trailing slash
Added by ashish.nepal@letshaggle.com about 11 years ago
I am trying to setup a redirect so that the urls end with / at the end (for making seo friendly).. However there are other internal rewrites, which are not shown in the browser address bar. I want to be able to redirect first with trailing / on the address bar and then perform those internal rewrites. However, when i try to put this rule at the start, all the internal rewrites get displayed in the address bar :
Currently i already have rewrite rule : url.rewrite-once = (
^/([0-9_-]+)(?:\?(.*))?" => "/path/www/index.php?cmd=alias&target=$1&$2",
<second condition> => <relative uri>
)
And addition redirect to achieve / in the end works but also shows entire physical path
Rule used: url.redirect = (“^(.*[^/])$” => “$1/”)
e.g: www.tikejhya.com/path/www/index.php?cmd=alias&target=hellow/world&/
I just want to add a trailing slash ( in the address bar-visible) , leaving every thing else untouched.
Any pointers in the right direction would be highly appreciated.
Thank you