Hi I am having a funny issue with Wordpress runnign on XAMPP. Mysteriously all of my pages including my admin page are redirecting to my home page which is hosted on:
http://localhost/client_projects/Active/example-site.co.uk
This is what my .htaccess file looks like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /http://localhost/client_projects/Active/example-site.co.uk/index.php
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . http://localhost/client_projects/Active/example-site.co.uk [L]
</IfModule>
# END WordPress
I have also made sure that in phpmyadmin my table wp_options
that siteurl and home fields are both pointing to http://localhost/client_projects/Active/example-site.co.uk
I unfortunately can not access my admin panel.
Why is my wordpress doing this?
EDIT:
On updating my .htaccess file to the following, all of my pages get redirected to localhost/dashboard
:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I have been working with Laravel and added the following to my https-vhosts.conf
file:
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/php/frameworks/laravel/lsapp/public"
ServerName lsapp.dev
</VirtualHost>
And my windows32/drivers hosts file
127.0.0.1 localhost
127.0.0.1 lsapp.dev
I am not sure if this is affecting anything, I have tried to revert the changes and it doesn't affect anything.