I am trying to redirect everything with a link of /Drug-Charges/ to simply /
I've been trying both 301 redirects as well as Rewrite Rules and have had no luck.
RewriteCond %{REQUEST_URI} ^/Drug-Charges/(.*) [NC]
RewriteRule ^/Drug-Charges http://www.domain.com/$1 [R=301,L]
What am I doing wrong here? I've enabled the rewrite engine and everything.
Here's the whole top portion:
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)\.aspx$ $1.html [R=permanent]
RewriteRule ^Landing-Pages/(.*) County-Resources/$1 [R=permanent]
#RewriteRule ^Practice-Areas/Sex-Crimes/(.*) /$1 [R=permanent]
rewriteRule ^index\.(php|html|htm|asp) http://www.domain.com/ [R=permanent,L]
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
RewriteRule ^Drug-Charges/(.*) /%1 [R,L]