Hello,

I have used Drupal for over a year and a half. Sometime around last year I moved to "clean urls" and then I deleted a page /?q=node/1 I have been trying to set up a .htaccess file to redirect this page and I can't seem to do it like this:

RewriteRule ^/?q=node/1l$ http://www.example.com/node/34 [R=301,L]

It doesn't work and I don't quit know enough about .htaccess to solve it. Anyone know what I am doing wrong?

Thanks in advance!

Comments

themphill’s picture

I don't understand what that character between your numeral '1' and the dollar sign is doing there, and I don't think you should use a leading slash. Another way of doing this might be: RedirectPermanent /?q=node/1 http://www.example.com/node/34

thedevnull’s picture

Ok, let me explain. I want to redirect a page http://www.example.com/?q=node/1 since I deleted it. Since then I have also turned on clean url's as well. Does anyone know how to best do this? I have tried a whole bunch of redirects and none work. =(

http://www.example.com/?q=node/1 should go to http://www.example.com/node/55 Any help is appreciated.

thedevnull’s picture

Hello Phil,

I did try what you suggested and it didn't work either. Anyone have any ideas?