scrupul0us Posted February 13, 2007 Share Posted February 13, 2007 I'm trying to fix and issue where navigation to /foo throws a 301 and /foo/ works i found this code: RewriteEngine on RewriteBase /~quux/ RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [R] what do i change the RewriteBase base to to work for my server and would that code go in the <directory /> </directory> declaration? im using linux and my files are served from /etc/www/htdocs/ heres my original thread one forum above this: http://www.phpfreaks.com/forums/index.php/topic,126728.0.html Quote Link to comment https://forums.phpfreaks.com/topic/38333-fix-lack-of-trailing-in-urls/ Share on other sites More sharing options...
effigy Posted February 13, 2007 Share Posted February 13, 2007 Rewrite is matching and removing the trailing slash for that directory. Therefore, you need the path with the trailing slash in RewriteBase, and the path without the trailing slash in Document. That's my understanding. Quote Link to comment https://forums.phpfreaks.com/topic/38333-fix-lack-of-trailing-in-urls/#findComment-183719 Share on other sites More sharing options...
scrupul0us Posted February 13, 2007 Author Share Posted February 13, 2007 that right there isnt removing the / its adding it i just need to know what the base is Quote Link to comment https://forums.phpfreaks.com/topic/38333-fix-lack-of-trailing-in-urls/#findComment-183865 Share on other sites More sharing options...
scrupul0us Posted February 28, 2007 Author Share Posted February 28, 2007 anyone? Quote Link to comment https://forums.phpfreaks.com/topic/38333-fix-lack-of-trailing-in-urls/#findComment-195800 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.