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

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

You 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.

krymp’s picture

So is there a way to redirect a url with query strings to something cleaner?

dave reid’s picture

You 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:

RewriteRule ^games$ /amazon_store?SearchIndex=VideoGames&BrowseNode=14220161 [L]
dave reid’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)