Jump to content

Rewriting files using mod_rewrite (weird problem)


mjurmann

Recommended Posts

Hello, I'm trying to setup a universal rule for my links that will basically rewrite any redirect any url without a trailing "/" to the correct file.

 

For example:

 

RewriteRule ^testimonials/$ /testimonials.php

 

If someone just goes to testimonials (without the "/" at the end), the link will be dead. Is there a rule I can add that will basically add a "/" on to any pages that people don't use a "/" at the end of?

 

Thanks so much in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.