Jump to content

Admin links are broken after migrating


postcom
 Share

Recommended Posts

I just moved the whole Processwire installation from the dev folder to the production folder and everything works well except for the top link in the admin (Page, Setups, Modules, Access). Those still points to the old folder.

More precisely: the previous locaiton of the install was domain.com/pw/ not it is domain.com/, but  the links point to domain.com/pw/processwire/page instead of  domain.com/pw/page.

I read some previous posts with the same issue, but non of the fixes really helped.
Thank you for your support!

Link to comment
Share on other sites

Check this:

  • in the .htaccess the "RewriteBase" ... should be "/"
  • in site/config.php the $config->httpHosts entries ... is the url entered correctly
  • in site/config.php set the $config->debug to "true" to get further error messages
  • Like 1
Link to comment
Share on other sites

Thank @tires, changing the .htaccess did it for me.
But turns out my overview on the issue was limited. My client actually set the folder i thought to be public-html as a subfolder. So basically the processwire is installed here:

public-html/2022/

and public-html has this .htaccess:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteRule !^2022/ /2022%{REQUEST_URI} [L,NC]

What happens when I visit domain.com is that I get a 404 error from proceswire (the template is loaded, but on a 404 error page instead of home).

Our goal is for the end user to visit domain.com and be redirected to domain.com/2022/ without the "2022" showing in the url.

Thanks again and sorry for going a bit off-topic

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...