View Single Post
Old 08-17-2012, 06:32 AM  
acctman
Confirmed User
 
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
htaccess force Lowercase url

i'm trying to for all urls to be lowercase on a Godaddy server for someone. i've tried the code below but keep getting an internal/500 error. RewriteMap i'm assuming needs to be set in the httpd.conf in which I don't have access too.

Code:
#RewriteEngine On
#RewriteMap lowercase int:tolower
#RewriteCond $1 [A-Z]
#RewriteRule ^/(.*)$ /${lowercase:$1} [R=303,L]

RewriteEngine On
RewriteMap  lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]
acctman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote