Problem with 301 redirect for aliased (and clean) URLs.

erenbebs - September 15, 2007 - 01:34
Project:URL Access
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi, I changed the name of one of my pages, but wanted to do a .htaccess Redirect 301 to redirect the page that's indexed on the search engines to my new page. Note that my page (new one) has a URL alias assigned. I also run with the clean URL's option (i.e., no ?q= ) on my site. Here's what I coded:

Redirect 301 /old_page http://mywebsite.com/new_page

Where you actually get redirected is to http://mywebsite.com/new_page?q=old_page

Note that old_page doesn't exist anywhere in my site (so far as I know), it was only indicated in the redirect.

Also, I'm doing RewriteCond/RewriteRule to strip the www. which may be causing a (the) problem. Anyway, I placed the Redirect both before and after the rewrites to see if that had an effect. Placing it before gave me I believe it was a 500 Unauthorized Access. Placing it after worked, but inserted the ?q= which shouldn't be on my site since I'm running clean URL's. Has anyone ever see this or might have a suggestion on what my problem is?

Thanks.

#1

Michelle - October 3, 2007 - 19:11
Status:active» fixed

In case you're still wondering, I ran into your issue when I searched for an answer to the same problem and

http://drupal.org/node/38960

is the fix.

Michelle

#2

Michelle - October 16, 2007 - 18:46

Was just pointed out on IRC that this issue is for the URL Access module. I just read the message and didn't look close enough at what it was from, sorry. I had that same problem using .htaccess, not using this module.

Michelle

#3

Anonymous - October 30, 2007 - 18:51
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.