Two WP installation on localhost, LINUX
-
Hello,
I have been looking at wp forum threads regarding this issue, there are plenty of info but I still can’t manage to solve my problem. I am working on Linux Mint, installed manually apache, mysql and php, created the database and the user, installed wp and created my site on localhost (/var/www/html). No issue.
I now need to move the first site in a subdirectory in order to install a new wp site in my localhost. I tried moving the whole folder in the subdirectory and creating the new .htaccess file as mentioned herebut it didn’t work. I suppose this is because I am making mistakes. How do I exactly change the example.com with my localhost path? I tried changing the example.com with localhost or the path /var/www/html, including/excluding the ? at the beginning and the $ at the end but i still get an error page with the header and the footer of my site and the error message
Oops! That page can’t be found.
It looks like nothing was found at this location. Maybe try one of the links below or a search?<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteCond %{REQUEST_URI} !^/my_subdir/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /my_subdir/$1
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteRule ^(/)?$ my_subdir/index.php [L]
</IfModule>Or maybe the .htaccess is not suitable for my situation?
Thank you in advance for any usefull information.
- The topic ‘Two WP installation on localhost, LINUX’ is closed to new replies.