Welcome to WebmasterWorld Guest from 188.8.131.52
I have a .htaccess question.
I currently have 2 sites exactly the same name but one has hyphons in the URL and one doesn't and I'm going to move one to the other.
The pages will be exactly the same on both sites.
While I develop the new one, I need to redirect anyone who goes to the NEW site back to the old one - expect me. I know this sounds the wrong way around, but I have links pointing to the new site, which are currently redirected to my old one.
I have this in my NEW site htaccess:
RewriteRule (.*) [my-old-site.co.uk...] [R=301,L]
This works great - any page someone goes to on my new site, gets sent to the existing page equivalent on the old site.
Question is - what do I need to add to this to allow MY IP to remain on the new site while I work on it?
Our goal here is to help you learn how to write your code, but not to write it for you, so please look at the docs.