Hot answers tagged

4

This is quite doable. XAMPP should work fine for this. The biggest gotchas will be converting any code that does not use relative addressing to work with a domain and HTTPS. You can likely get closer to your goal by using the hosts file on your computer to create a domain name (but only have it work on computers with a modified hosts file) WordPress is a ...


2

It is quite trivial do do so. The simplest way is just to pretend you have a domain by adding it to your internal network. If you only develop on one computer, then just change the hosts (/etc/hosts on Unix) file to point a name to your local computer's IP address (Done this dozens of time, it is that simple!) Then you just develop normally using the name ...


2

Absolutely. For doing everything on your computer (or locally), I recommend Local by Flywheel. While the other answers (XAMPP, Docker) work great, I think Local by Flywheel greatly simplifies the process of setting up a local environment much better. It sets up a WordPress site with a domain name that can only be accessed thru the computer it is installed in....


1

You can also use WordPress in Docker for a quick local setup, or to use on a container-based environment, like Netlify who are free for small projects. Here is a feature about using WordPress on Netlify: https://www.netlify.com/with/wordpress/ Using a docker-compose.yml based on the quickstart instructions, you can install and connect two local servers, an ...


1

I got it working by using Javascript to do the redirecting. However the redirect became extremely slow when loading. Does anyone know why and what can be done about that part? switch ($redirect) { default: ?> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxx-1"></script> <script> window....


Only top voted, non community-wiki answers of a minimum length are eligible