Jump to content

redirect help


tallberg

Recommended Posts

I need to redirect alot of old url in a domain to new url in the same domain.

 

Example

 

http://www.domain.co.uk/index.php?option=com_content&task=section&id=1&Itemid=2

 

to

 

http://www.domain.co.uk/News-ID10 (this is already in the htacess as a rewrite)

 

 

can anybody recommend a way to get this done quickly.

 

Ive been looking at htacess and i dont understand the conditions.

I dont really need conditions just this url goes to this url.

 

Thanks

 

 

 

 

Does anybody see a problem with this approach:

 

if(getenv('REQUEST_URI') == '/index.php?option=com_frontpage&Itemid=1')

header('location:http://www.newdomain.com/Our-Sponsor-ID13');

 

Link to comment
https://forums.phpfreaks.com/topic/160642-redirect-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.