homepage Welcome to WebmasterWorld Guest from 54.205.189.156
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
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
TravelPixel




msg:3643772
 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:

http://www.example.com/example.php?parameter1={p1}&parameter2={p2}

And I want them to be all redirected to

http://www.example.com/

Thanks for any help in advance...Dave

 

jdMorgan




msg:3644354
 12:34 am on May 8, 2008 (gmt 0)

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

Jim

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