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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.