By theroyal on
Please this is very important my my google visitors dropped 99% after I moved to drupal clean urls
please HOW TO : 301 redirect visitors from 80000 old urls like :
http://example.com/article.php?id=1
to
http://example.com/article/1
I will be so thankful my business is dieing.
note : I have path_auto + global redirect + path redirect - but I dont think they do forward 301 dynamic urls if they do then please someone explain.
Comments
You can use the .htaccess to
You can use the .htaccess to rewrite the url.
Off the top of me head, try this:
RewriteRule /articles/([0-9]+) /articles.php?id=$1
Have a look at: http://www.webmasterworld.com/apache/3740459.htm
NOTE: Be careful because i'm sure not all your drupal urls are going to be article/{number} depending on how your content-types are structured.
-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien
will normal php redirect work fine?
Hi duvien,
Thanks for your response but after spending some time I couldnt understand enough what I should do,
so as a temp. solution I uploaded a simple php file with one line which is redirect comannd to the new url.
so I still need your help guys coz I cant leave this file for long time or it will harm my SEO.