Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to remove subdirectories using mod_rewrite in .htaccess Reply To: How to remove subdirectories using mod_rewrite in .htaccess

#170974
ewisely
Participant

Thank you for your super clear explanation. I totally get what you mean.

Oh, I’m thinking of using the code to add a trailing slash in case someone types in, for instance, example.com/rest/bedtime

So, instead of returning a 404 Not Found error code, it will add a forward slash behind to make it look like this example.com/rest/bedtime/ which will return the content of example.com/cat/rest/bedtime.html

Since you said it may produce false results at times, I wonder if you have a better solution for that?

Thanks once again.