links redirect to dashboard xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

links redirect to dashboard xampp

Postby masoud_sadeghi » 08. September 2018 20:06

Hello
I've moved WordPress from hosts to Xampp local hosts.
I corrected the links inside the database. Although the home page is loaded.
But on every link, I'm redirected to the http: // localhost / dashboard page.
I use WordPress 4.9.6, Xampp 3.2.2 and Windows 8.1 64-bit

my .htaccess file
Code: Select all
# 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

please guide me, thanks
masoud_sadeghi
 
Posts: 3
Joined: 03. June 2018 05:48
XAMPP version: 3.2.2
Operating System: windows 8.1 64 bit

Re: links redirect to dashboard xampp

Postby Nobbie » 09. September 2018 11:38

You are in the wrong forum here, that is a plain WordPress issue. Try to remove the "RewriteBase /" line in your .htaccess, if it does not work, ask in a WordPress forum.

The problem is, this .htaccess always redirects to /index.php in your DocumentRoot, which is Xampps htdocs folder, and that index.php contains a redirect to the dashboard. You have to change the .htaccess in that manner that it redirects to the index.php of your WordPress folder instead. Deleting the RewriteBase may solve the problem, i am unsure.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: links redirect to dashboard xampp

Postby masoud_sadeghi » 09. September 2018 16:07

Hi Nobbie
Thank you for guidance
It was very useful
masoud_sadeghi
 
Posts: 3
Joined: 03. June 2018 05:48
XAMPP version: 3.2.2
Operating System: windows 8.1 64 bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 112 guests