Hi,
I have read all related posts in 2011 but still can't get it to work, I must be a slow learner so please do not mind and give me a hint if you have time.
I have a wordpress blog installed in a subdirectory which is generating a lot of non existing URL which I find in google WMT. Basicaly, I want to redirect the [
domain.ro ] where
12345678
is an variable 8 digit number to [
domain.ro ]/
I am trying with
Options +FollowSymLinks -Indexes
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/blogg/
RewriteCond %{QUERY_STRING} ^m=([0-9]*)
RewriteRule ^$ http://www.domain.ro/subdirectory/? [L,R=301]
but still send me to [
domain.ro ]http://www.domain.ro/subdirectory?m=12345678, instead of [
domain.ro ]
Please help me with a hint of what am I doing wrong.
Thank you!