Results 1 to 2 of 2
-
25th Feb 2012, 02:23 PM #1OPMember
how to redirect url
Hi,
I want to redirect a url like this
from: http://domain.com/forums/index.php/xxxxx
to: http://forums.domain.com/index.php/xxxxx
I want to keep the xxxxxx at the end so that it will redirect to the new forum page.
Is there any way to do this.
ThanksSiruthuli Reviewed by Siruthuli on . how to redirect url Hi, I want to redirect a url like this from: http://domain.com/forums/index.php/xxxxx to: http://forums.domain.com/index.php/xxxxx I want to keep the xxxxxx at the end so that it will redirect to the new forum page. Is there any way to do this. Rating: 5
-
25th Feb 2012, 10:31 PM #2Respected Member
try this as the index.php for http://domain.com/forums/
PHP Code:<?php
$uArray = explode('/',$_SERVER['ORIG_PATH_INFO']);
header( 'Location: http://forums.domain.com/index.php/".$uArray[count($uArray)-1]) ;
?>
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
301 redirect help
By tractor3231 in forum Web Development AreaReplies: 4Last Post: 28th Jul 2011, 04:19 PM -
How to Redirect !
By softleaks in forum Tutorials and GuidesReplies: 12Last Post: 20th Jul 2011, 09:01 AM -
301 Redirect help
By Rox in forum WordpressReplies: 7Last Post: 10th Jul 2011, 09:03 PM -
Redirect your non www url's to www
By hhhgame in forum Tutorials and GuidesReplies: 11Last Post: 2nd Dec 2010, 03:22 PM -
In Need of Url REdirect mod ..?
By litewarez in forum phpBBReplies: 25Last Post: 20th Oct 2009, 08:40 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...