Hi everybody,
Sorry if this is the wrong forum to put this in, first off.
I was wondering, I know there's a way to do redirects in the control panel, but is there a way to do a case-insensitive redirect?
For example, I have a directory like this:
mysite.com/Directory
That redirects to:
mysite.com/Directory/Index.php.
When I type in:
mysite.com/directory
or any other variant with the improper capitalization, I get a 404 not found error. I'd like to be able to redirect as long as the directory is right without capitalization, so if a user accidentally forgets to capitalize, it isn't a problem.
Can anyone tell me, please, is there a way to do this?
Thanks,
Lydia
Edit:
Never mind, I got it.
For future reference, it doesn't look like you can do this in the control panel, you have to do it in htaccess. Add "NC" after the "R" in your redirect directive to make "[R,NC]" and that does it.
Hope that helps someone,
Lydia
Sorry if this is the wrong forum to put this in, first off.
I was wondering, I know there's a way to do redirects in the control panel, but is there a way to do a case-insensitive redirect?
For example, I have a directory like this:
mysite.com/Directory
That redirects to:
mysite.com/Directory/Index.php.
When I type in:
mysite.com/directory
or any other variant with the improper capitalization, I get a 404 not found error. I'd like to be able to redirect as long as the directory is right without capitalization, so if a user accidentally forgets to capitalize, it isn't a problem.
Can anyone tell me, please, is there a way to do this?
Thanks,
Lydia
Edit:
Never mind, I got it.
For future reference, it doesn't look like you can do this in the control panel, you have to do it in htaccess. Add "NC" after the "R" in your redirect directive to make "[R,NC]" and that does it.
Hope that helps someone,
Lydia
Last edited: