Forum Moderators: phranque

Message Too Old, No Replies

301 redirects from index.php

         

Jaztrio

4:03 pm on Feb 8, 2007 (gmt 0)

10+ Year Member



When I first put up my site I had a webdesigner convince me it was a goo idea to use a CMS - which lead all my pages to be linked "weird"

Like www.example.com/index.php/washing-diapers

Well I went though and gave each of these pages a redict - each one that was important - however I think my redirect was not so good - that's my first question with a TON of pages how do I redirect them easily or is the method I used ok?

2nd with the CMS came a ton of crazy urls - like this one http://www.example.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=5&cntnt01returnid=56 which is going to an OLD page - and I cant seem to figure out how to redict these crazy urls to my home page - or any other page for that matter!

Can I?

[edited by: jdMorgan at 11:08 pm (utc) on Feb. 8, 2007]
[edit reason] Example.com. Please see Terms of Service. [/edit]

jdMorgan

11:11 pm on Feb 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> that's my first question with a TON of pages how do I redirect them easily or is the method I used ok?

We can't tell, since we don't know what method you used...

> Can I?

Yes, Apache mod_rewrite can be used to test the query string and URL-path (separately, using RewriteCond and RewriteRule respectively), and generate a redirect based on all or part of each.

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim