Hello,
I usually dont mess around in .htaccess much and it's been years since last time.
Back then I had this magical line that "creates" html files out of normal php pages.
RewriteRule ([a-z]+)/art_([a-zA-Z0-9_-]+)\.html$ /picture\.php?album=$1&picture=$2&lang=$3
= art_01.html
Now my problem is that I changed all file-names to:
RewriteRule ([a-z]+)/art_([a-zA-Z0-9_-]+)_([a-zA-Z0-9_-]+)\.html$ /picture\.php?album=$1&picture=$2&lang=$3
= art_namehere_01.html
Which causes issues in google adsense since none of the old pages is there anymore.
I read I have to do a 301 redirect: but how? I cant for example make this work (or variations of it):
Redirect 301 ([a-z]+)/art_([a-zA-Z0-9_-]+)\.html$ ([a-z]+)/art_([a-zA-Z0-9_-]+)_([a-zA-Z0-9_-]+)\.html$
Any suggestions on how to make the redirect work?