First i want to say thank you so much for all this help you are providing. There is just something inside me that say's the problem is right in front of my eyes but i just can't seem to nail it.
after some playing around this is what i have now.
i have changed the code to this below
#Redirect
RewriteCond %{QUERY_STRING} ^a{1}=4{1}$ [NC]
RewriteRule ^index\.php$ [accounts.wantadmag.com?...] [R=301,L]
#Rewrite
RewriteCond %{HTTP_HOST} ^accounts\.wantadmag\.com$
RewriteRule ^$ /index.php?a=4 [L]
This code above is redirecting and taking me to [
accounts.example.com...] when i click http://example.com the only problem is that i am getting the infinite loop message again from FireFox
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Here is the log from Live HTTP Headers. I don't know if the full list is needed but i am just going to add it in case it's more help to have see it.
http://example.com/index.php?a=4
GET /index.php?a=4 HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:05 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=98
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=97
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=96
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=95
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=94
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=93
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=92
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=91
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:06 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=90
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=89
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=88
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=87
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=86
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=85
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=84
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=83
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=82
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
[
accounts.example.com...]
GET / HTTP/1.1
Host: accounts.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://example.com/
Cookie: session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection: keep-alive
HTTP/1.1 301 Moved Permanently
Date: Wed, 27 Feb 2013 23:34:07 GMT
Server: Apache
Location: [
accounts.example.com...]
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 195
Keep-Alive: timeout=5, max=81
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------