Forum Moderators: phranque
Options +FollowSymlinks All -Indexes
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /oldfolder1/oldfolder2/town\.php\?town=TownName
RewriteRule (.*) http://www.newdomain.co.uk/newfolder1/newfolder2/TownName [R=301,L]
http://www.oldomain.com/oldfolder1/oldfolder2/town.php?town=TownName
GET /oldfolder1/oldfolder2/town.php?town=TownName HTTP/1.1
Host: www.oldomain.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Thu, 24 Feb 2011 20:32:43 GMT
Server: Apache/1.3.29 (Unix) (Red-Hat/Linux) Chili!Soft-ASP/3.6.2 mod_ssl/2.8.14 OpenSSL/0.9.6b PHP/4.4.9 FrontPage/5.0.2.2510
Location: http://www.newdomain.co.uk/newfolder1/newfolder2/TownName?town=TownName
Content-Type: text/html; charset=iso-8859-1
Age: 0
Connection: close
Is there any URL rewriting going on anywhere?
RewriteRule ^([^./]+)$ /newfolder1/newfolder2/walkin.php?town=$1 [L]