Always redirected to localhost/dashboard

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

Always redirected to localhost/dashboard

Postby mbenic » 05. July 2021 13:39

hi
i am running xampp version 8.07
ive moved a website from a paid hosting environment to localhost
the paid hosting environment uses MySQL 5.6 databases

the front page loads fine on localhost, but when i try to access any other page i am immediately redirected to localhost/dashboard

ive changed the theme to see if that was the reason but the problem persists
i also notice that page builder plugin elementor does not load
all plugins and theme are up to date

the sites htaccess file looks like this:

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


does someone here know what could be the reason for this ???

i have moved other websites in the same way and they are loading fine
the other sites are a little bit different in that they were built different theme and page builder

i would appreciate some advice

thanks for your help
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: Always redirected to localhost/dashboard

Postby Altrea » 05. July 2021 18:45

Hi,

The redirect to /dashboard is done by the xampp default index.php in htdocs.
Because your wordpress .htaccess redirects each request to the domain index.php in the root directory this file gets executed.

You need to configure wordpress properly for the correct domain and domain paths.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Always redirected to localhost/dashboard

Postby mbenic » 06. July 2021 04:16

I had already changed the site url to local host (and the home url )
I thought there might have been an incompatibility with the databases

The problem was with elementor plugin
I had to reinstall it and that seemed to work
Thanks
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: Always redirected to localhost/dashboard

Postby Altrea » 06. July 2021 06:31

mbenic wrote:I thought there might have been an incompatibility with the databases

No, the database has nothing to do with this issue.

mbenic wrote:The problem was with elementor plugin

At the end it is still a wordpress (plugin) configuration issue.
Wordpress (and some plugins) build urls with base of configured base uri parameters (protocol, domain, port, etc).
I am very sure you did not need to reinstall the whole plugin, there are ways to configure them.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Always redirected to localhost/dashboard

Postby mbenic » 07. July 2021 06:05

hi i have dowlaoded another site to localhost and am having the same problem
again the htacess file looks like this

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

i dont know... but i cant identify any commands that redirect to localhost/dashboard

can you give me some idea how do i configure wordpress properly for the correct domain and domain paths?
or direct me to a website where i can find more information
thanks in advance
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: Always redirected to localhost/dashboard

Postby mbenic » 07. July 2021 06:09

Permalink Settings
Permalink structure updated.

i found the issue

this time it was the permalink settings

i changed them form day time to post name and that seemed to work
Common Settings
Plain http://localhost/kickin/?p=123
Day and name http://localhost/kickin/2021/07/07/sample-post/
Month and name http://localhost/kickin/2021/07/sample-post/
Numeric http://localhost/kickin/archives/123
Post name http://localhost/kickin/sample-post/
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: Always redirected to localhost/dashboard

Postby Altrea » 07. July 2021 09:36

mbenic wrote:# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

The htaccess is pointing to the root folder.
If you did not install wordpress to the root folder but in a subfolder, this needs to be fixed.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 121 guests