Closed (fixed)
Project:
Redirect
Version:
7.x-1.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2011 at 16:45 UTC
Updated:
4 Nov 2011 at 16:41 UTC
When I save the path here: amazon_store?SearchIndex=VideoGames&BrowseNode=14220161
to a new cleaner path called "games" it saves the URL redirect. But when I go to test the redirect I get a page not found error:
"Page not found
Add an URL redirect from this page to another location
The requested page could not be found."
I know this url works because I can pull up this page correct when go directly to it:
www.MYSITENAME.com/amazon_store?SearchIndex=VideoGames&BrowseNode=14220161
I just want a clean url such as www.MYSITENAME.com/games
Comments
Comment #1
dave reidYou can't really use a redirect for this. You have to ensure that http://www.mysitename.com/games actually outputs something if you want to redirect *to* that path.
Comment #2
krymp commentedSo is there a way to redirect a url with query strings to something cleaner?
Comment #3
dave reidYou have to ensure that the 'games' path actually provides output, otherwise it's pointless to redirect to it. And you cannot currently create aliases in Drupal with query strings.
Your best bet might be to create a .htaccess mod_rewrite line that rewrites that path 'games' to the internal path with the query string. You add something like the following to the .htaccess file in your Drupal root folder:
Comment #4
dave reid