homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Redirect dynamic url to homepage
Question about .htaccess

5+ Year Member

Msg#: 3643770 posted 11:55 am on May 7, 2008 (gmt 0)

Im hoping someone can help me out here...

Ive got some dynamic urls that are now redundant and I want to redirect them to our homepage. However if i just use a straightforward 301 redirect in .htaccess the query string is appended to the homepage.

Does anyone know how to get rid of the query string so the redirect goes to the static homepage?

So the dynamic urls look like this:


And I want them to be all redirected to


Thanks for any help in advance...Dave



WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3643770 posted 12:34 am on May 8, 2008 (gmt 0)

Use Apache mod_rewrite, and put a "?" at the end of the substitution URL.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved