![]() |
regex for trailing slashes?
Could someone please help me come up with a regex to determine if a trailing slash needs to be added to a url?
for instance http://www.whatever.com needs to become http://www.whatever.com/ and http://www.whatever.com/foo needs to be http://www.whatever.com/foo/ but http://www.whatever.com/foo.php needs to remain the same Thanks, Leonard |
PHP Code:
|
All times are GMT -8. The time now is 01:35 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.