Forum Topic: Redirection With Characters Not Working

Forum: .htaccess Forum : Redirecting • Posted by Yael Miller • Updated:

I want to do a simple redirect. I used your suggestion from this topic. Instead of doing my old way of:

Redirect 301 /projects/
Redirect 301 /projects

I tried the below:

Redirect 301 /projects/?$

The redirect didn’t work.

I tested my old way and it worked.

2 Replies to “Redirection With Characters Not Working”

Posted by Jeff Starr

Try this:

RedirectMatch 301 /projects/?$

Basically use Redirect when not using regular expressions and RedirectMatch when regex is involved.

Posted by Yael Miller •

Thanks, Jeff, that worked.