troubleshooting Question

htaccess redirect with query string to specific page

Avatar of Heather Ritchey
Heather RitcheyFlag for United States of America asked on
Apache Web ServerWordPressWeb Development
3 Comments1 Solution1421 ViewsLast Modified:
How to I correctly redirect individual urls that have a query string at the end to a specific url that does not contain any queries? There will be many to do, but several pages have different query strings on them, but now go to individual pages. Here's one of the redirects that I need to make work: (I tried that normal redirect in the htaccess but it just goes to a 404 error page)

redirect 301 /Neighborhood.aspx?NeighborhoodId=6399 http://herrickguestsuites.com/suites/chelsea/
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros