Logo Questions Linux Laravel Mysql Ubuntu Git Menu

Redirect 301 With Flags

Can I use the Redirect 301 with Flags like NC and L?

For example:

Redirect 301 /test.htm /example/test/ [NC, L]

I'm getting server errors but I'm not sure if it's because Redirect 301 doesn't allow flags at the end of the statement or if it's something else.

like image 898
Howdy_McGee Avatar asked Mar 22 '23 13:03


1 Answers

Flags you mentions are related to mod_rewrite, but Redirect is part of mod_alias and has different syntax.

See here: https://httpd.apache.org/docs/current/mod/mod_alias.html#redirect

like image 150
JimiDini Avatar answered Mar 31 '23 23:03