mjurmann Posted March 29, 2008 Share Posted March 29, 2008 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. Link to comment https://forums.phpfreaks.com/topic/98428-rewriting-files-using-mod_rewrite-weird-problem/ Share on other sites More sharing options...
wildteen88 Posted March 29, 2008 Share Posted March 29, 2008 Have a read of the snippets of code in the thread here Link to comment https://forums.phpfreaks.com/topic/98428-rewriting-files-using-mod_rewrite-weird-problem/#findComment-503886 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.