Local server – working offline using .htaccess?
-
Hi,
I’ve recently discovered the wonderful things that can be done in the .htaccess file, and thought it may help me to be able to setup my wordpress install, such that when my locally installed (i.e. running from my computer) blog is offline (i.e. when I have no internet connection), I can still browse my blog/work on it.
So what I want to do, is use the .htaccess file (if possible) to allow me to point to https://mylocalcomputername instead of https://mydomainname, and have the .htaccess file rewrite anything and everything to do with https://mydomainname to https://mylocalcomputername
I’m thinking along the lines of something like:
RewriteRule /.* https://mylocalcomputername/ [R]
although this obviously isn’t correct as otherwise I wouldn’t be posting ??
I realise this is probably a more appropriate question for the apache forums, but I figure that this would be highly useful to anyone that is running WordPress from their local computer, such that it would speed their browsing, and save on ISP bandwidth traffic.
Thanks in advance, and apologise this is not 100% WordPress related.
- The topic ‘Local server – working offline using .htaccess?’ is closed to new replies.