Forum Moderators: phranque
Tried to add the following for the trailing slash but it only worked for real directories not rewritten dynamic php files.
RewriteCond %{REQUEST_URI}!/$
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule (.*) http://www.example.com/$1/ [R=301,L]
Lastly, I don't think this relates to the .htaccess file but when ever I have a listing id number over 400 it times out. I don't think the mod_rewrite file is affecting this but maybe it is. (see the last line).
Thanks in advance.
***************Current .htaccess file*************
Options -MultiViews
Options +FollowSymLinks
RewriteEngine on
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php
RewriteCond %{http_host} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
RewriteRule vacation-rentals-alabama/ search.php?c=5&s=26
RewriteRule vacation-rentals-alaska/ search.php?c=5&s=27
RewriteRule vacation-rentals-arizona/ search.php?c=5&s=28
RewriteRule vacation-rentals-arkansas/ search.php?c=5&s=29
RewriteRule vacation-rentals-california/ search.php?c=5&s=30
RewriteRule vacation-rentals-colorado/ search.php?c=5&s=31
RewriteRule vacation-rentals-connecticut/ search.php?c=5&s=32
RewriteRule vacation-rentals-delaware/ search.php?c=5&s=33
RewriteRule vacation-rentals-florida/ search.php?c=5&s=34
RewriteRule vacation-rentals-georgia/ search.php?c=5&s=35
RewriteRule vacation-rentals-hawaii/ search.php?c=5&s=36
RewriteRule vacation-rentals-idaho/ search.php?c=5&s=37
RewriteRule vacation-rentals-illinois/ search.php?c=5&s=38
RewriteRule vacation-rentals-indiana/ search.php?c=5&s=39
RewriteRule vacation-rentals-iowa/ search.php?c=5&s=40
RewriteRule vacation-rentals-kansas/ search.php?c=5&s=41
RewriteRule vacation-rentals-kentucky/ search.php?c=5&s=42
RewriteRule vacation-rentals-louisiana/ search.php?c=5&s=43
RewriteRule vacation-rentals-maine/ search.php?c=5&s=44
RewriteRule vacation-rentals-maryland/ search.php?c=5&s=45
RewriteRule vacation-rentals-massachusetts/ search.php?c=5&s=46
RewriteRule vacation-rentals-michigan/ search.php?c=5&s=47
RewriteRule vacation-rentals-minnesota/ search.php?c=5&s=48
RewriteRule vacation-rentals-mississippi/ search.php?c=5&s=49
RewriteRule vacation-rentals-missouri/ search.php?c=5&s=50
RewriteRule vacation-rentals-montana/ search.php?c=5&s=51
RewriteRule vacation-rentals-nebraska/ search.php?c=5&s=52
RewriteRule vacation-rentals-nevada/ search.php?c=5&s=53
RewriteRule vacation-rentals-new-hampshire/ search.php?c=5&s=54
RewriteRule vacation-rentals-new-jersey/ search.php?c=5&s=55
RewriteRule vacation-rentals-new-mexico/ search.php?c=5&s=56
RewriteRule vacation-rentals-new-york/ search.php?c=5&s=57
RewriteRule vacation-rentals-north-carolina/ search.php?c=5&s=58
RewriteRule vacation-rentals-north-dakota/ search.php?c=5&s=59
RewriteRule vacation-rentals-ohio/ search.php?c=5&s=60
RewriteRule vacation-rentals-oklahoma/ search.php?c=5&s=61
RewriteRule vacation-rentals-oregon/ search.php?c=5&s=62
RewriteRule vacation-rentals-pennsylvania/ search.php?c=5&s=63
RewriteRule vacation-rentals-rhode-island/ search.php?c=5&s=64
RewriteRule vacation-rentals-south-carolina/ search.php?c=5&s=65
RewriteRule vacation-rentals-south-dakota/ search.php?c=5&s=66
RewriteRule vacation-rentals-tennessee/ search.php?c=5&s=67
RewriteRule vacation-rentals-texas/ search.php?c=5&s=68
RewriteRule vacation-rentals-utah/ search.php?c=5&s=69
RewriteRule vacation-rentals-vermont/ search.php?c=5&s=70
RewriteRule vacation-rentals-virginia/ search.php?c=5&s=71
RewriteRule vacation-rentals-washington/ search.php?c=5&s=72
RewriteRule vacation-rentals-washington-d-c/ search.php?c=5&s=83
RewriteRule vacation-rentals-west-virginia/ search.php?c=5&s=73
RewriteRule vacation-rentals-wisconsin/ search.php?c=5&s=74
RewriteRule vacation-rentals-wyoming/ search.php?c=5&s=75
RewriteRule vacation-rentals-caribbean/ search.php?c=6&s=76
RewriteRule vacation-rentals-mexico/ search.php?c=6&s=81
RewriteRule vacation-rentals-europe/ search.php?c=6&s=79
RewriteRule vacation-rentals-canada/ search.php?c=6&s=78
RewriteRule vacation-rentals(.*)/ search.php
RewriteRule rental-id-(.*)\.html$ info.php?id=$1
[edited by: jdMorgan at 9:24 pm (utc) on Feb. 3, 2008]
[edit reason] example.com [/edit]