Forum Moderators: phranque
How do I exclude my IP? And also since I do not have a dedicated IP, would it make sense to get one of those dyndns pointers?
Thanks,
Hayden
Even if you do not have a static IP, you shouldhave a RANGE of IP's you could come from. Could you njust exclude that range?
Another solution (which is just about as poor as the one oyu are using) is to just rename .htaccess every time you access... yeah, i know, not much of a solution.... but it saves some uploading...
dave
My question is for the actual coding, as I am very new to .htaccess
I imagine it is something like:
RewriteCond %{REMOTE_ADDR} ^123\.45\.67\.8$
But I'm not sure.
Also would it be possible to do this using dyndns, or should I pay for the static ip?
Add a condition to your canadian-visitor redirection rule that excludes you IP address or IP address range.
RewriteCond %{REMOTE_ADDR} !^123\.45\.67\.8$
RewriteCond <existing canadian visitor detection>
RewriteRule <existing canadian redirect>
The first line will prevent the redirect of the request comes from your IP address or your IP address block, depending on how you define it.
Another idea: You could create a special subdomain for your own use, supported by transparent redirects, and use those subdomains for viewing your site from the canadian and non-canadian perspectives. Something like [webmaster.yourdomain.com...]
HTH,
Jim
If you want to try it, use
RewriteCond %{REMOTE_HOST} !^somename\.dyndns\.org
It should not affect your regular traffic while testing, though. The worst that can happen (assuming no typos or other .htaccess errors) is that you'll get redirected to the .ca pages.
Jim