Jump to content

/somepage.html?id=lots-of-crud -> http://mysite.com (with no parameters)?


ultrus

Recommended Posts

Hello,

How would i do this with .htaccess?:

 

/somepage.html?id=this-dead-page-had-lots-of-random-parameters&moreParameters=you-bet

 

to

 

http://www.mysite.com (with no parameters)

 

Currently the following has undesired results:

 

Redirect 301 /somepage.html http://www.www.mysite.com

 

results in

 

http://www.www.mysite.com/?q=id=this-dead-page-had-lots-of-random-parameters&moreParameters=you-bet

 

The Drupal site I'm working with is adding in the ?q= part. I'm trying to stop that in general before getting that far.

 

Any thoughts? Much appreciated in advance.  :-*

 

Chris

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.