Welcome to WebmasterWorld Guest from 50.19.190.144

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Redirect dynamic url to homepage

Question about .htaccess

     
11:55 am on May 7, 2008 (gmt 0)

New User

5+ Year Member

joined:May 23, 2006
posts:33
votes: 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

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

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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

Jim

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members