htaccess problem

They have: 4 posts

Joined: Mar 2005

I am trying to do a redirection with .htaccess
from the page below, which is located at http://www.domainxyzzz.com (not real domain)
in the path: /fol/info.php?mtc_id=2&ct_id=1

I'm trying to redirect...

from:
info.php?mtc_id=2&ct_id=1

to:
http://www.domainxyzzz.com/index.php

I have tried each of the following in .htaccess file located at http://www.domainxyzzz.com/fol/ but they do not work:

redirect info.php?mtc_id=2&ct_id=1 http://www.domainxyzzz.com/index.php

redirect info.php\?mtc_id=2&ct_id=1 http://www.domainxyzzz.com/index.php

If anyone has any suggestions or ideas, I would certainly appreciate them, please. Confused

dk01's picture

He has: 516 posts

Joined: Mar 2002

That domain doesn't exist so I'm gunna wait til I can see what the problem is. Smiling

-dk

CptAwesome's picture

He has: 370 posts

Joined: Dec 2004

first thing in the whole of the info.php file)

<?
if($mtc_id == 2 && ct_id == 1){
         $go = "http://www.domainxyzzz.com/index.php"
         header("Location:$go");
}else{
// the rest of the code
}
?>
'

They have: 4 posts

Joined: Mar 2005

Thanks CptAwesome - your solution works a treat! Just had to put the $ sign in front of ct_id and all working fine. Your help is very much appreciated.
Kind Regards
Harry Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.