|
12-03-2004, 01:46 AM | #1 |
Green Mole
Join Date: Dec 2004
Posts: 10
|
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 |
12-03-2004, 03:06 AM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
PHP Code:
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Points, underscores, ampersands and slashes | renehaentjens | Mod Requests | 1 | 12-08-2003 01:00 PM |