Home Htaccess: Rewrite Rule adding Trailing Slash in the middle of URL
Reply: 1

Htaccess: Rewrite Rule adding Trailing Slash in the middle of URL

Hannes D.
1#
Hannes D. Published in 2017-12-07 12:08:02Z

I am not really familiar with RegExp and it's really hard for me. I want to do the following:

Rewriting this:

http://www.example.com/pl?utm_source=test&utm_medium=testing&utm_campaign=test-testing

to this:

http://www.example.com/pl/?utm_source=test&utm_medium=testing&utm_campaign=test-testing

As you can see I want to add a trailing slash after "pl".

Hope anyone has an idea. (or tutorials, guides etc.)

Hannes D.
2#
Hannes D. Reply to 2017-12-07 14:39:30Z

GOT IT:

It was easier than I thought:

   RewriteRule ^(..)$ $1/
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.310339 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO