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/1$ http://www.example.com/node/34 [R=301,L]
Other than the redirect above and a few others my .htaccess is the same as the default. It doesn't work and I don't quit know enough about .htaccess to solve it. Any idea of what I am doing wrong? Should this be done another way? Links or suggestions are appreciated. =)
Thanks, J
check the right commands just have a look http://heidisoft.com/blog/how-redirect-web-page-12-ways - Heshan
\/// / \ | \ // | ( | (.) (.) | ) --------o00o--(_)--o00o------- ------ooo0----------------------------- ( ) 0ooo \ ( ( ) _) ) / (_/
2008/12/10 Joseph mangg@yahoo.com
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/1$ http://www.example.com/node/34 [R=301,L]
Other than the redirect above and a few others my .htaccess is the same as the default. It doesn't work and I don't quit know enough about .htaccess to solve it. Any idea of what I am doing wrong? Should this be done another way? Links or suggestions are appreciated. =)
Thanks, J
-- [ Drupal support list | http://lists.drupal.org/ ]
Hi,
don't you wanna solve this with Site Building >> URL aliases from inside Drupal 6.x?
I am new to apache's rewrite, too, but just experimented with it over the weekend. I think, if you have a http:// in the beginning the R=302 will not work
best mau
On Wed, Dec 10, 2008 at 5:45 PM, Joseph mangg@yahoo.com wrote:
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/1$ http://www.example.com/node/34 [R=301,L]
Other than the redirect above and a few others my .htaccess is the same as the default. It doesn't work and I don't quit know enough about .htaccess to solve it. Any idea of what I am doing wrong? Should this be done another way? Links or suggestions are appreciated. =)
Thanks, J
-- [ Drupal support list | http://lists.drupal.org/ ]
I would not do this with .htaccess. Simply create a url alias in drupal (assuming you have the path module enabled) to redirect node/34 to any page you'd like to. You should find this on admin/build/path
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Joseph Sent: Wednesday, December 10, 2008 8:45 AM To: support@drupal.org Subject: [support] Redirect with .htaccess not working
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/1$ http://www.example.com/node/34 [R=301,L]
Other than the redirect above and a few others my .htaccess is the same as the default. It doesn't work and I don't quit know enough about .htaccess to solve it. Any idea of what I am doing wrong? Should this be done another way? Links or suggestions are appreciated. =)
Thanks, J
-- [ Drupal support list | http://lists.drupal.org/ ]