Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Trailing Backslash

$
0
0

Replies: 0

Hello John,

I’ve been trying to set up a redirect to remove any trailing backslash on urls eg:

/reclaimed-wood-egg-trays/

or https://reclaimdesign.org/reclaimed-wood-egg-trays/

My regex is not so great and I haven’t been able to successfully set up a redirect to do that. This is the best I could come up with and it’s not working correctly:

^/(.*)\/
https://reclaimdesign.org/$1

So I wanted to ask if you would be able to advise please? I’d very much appreciate the assistance.

Michael.


Viewing all articles
Browse latest Browse all 59525

Trending Articles