Not able to change Wordpress site url - users being logged out - wordpress

A client had a problem that the users was logged out after only minutes of inactivity. And wordpress telling that .htaccess wasn't writable(which it was). I checked the wordpress site url and home url and it turned out that the wordpress site url had www including in the url, while the home url didn't. I tried changing the wordpress site url to include www, but it was set back to not including the www when I reloaded the page.

The solution to the problem was that I had to define the the site url and home url in wp-config.php. After that Wordpress stopped complaining about .htaccess not being writable and users was not logged out.
define('WP_HOME','http://www.mysite.com');
define('WP_SITEURL','http://www.mysite.com');
Anyone know why this happened all of a sudden? And why didn't Wordpress let me save the wordpress home url from the admin interface?

Were there any changes made to the Database of the site recently?
The home and site url's are also stored in the wp_options table in the DB and can be manually changed from PHP myadmin if required...

Related

Can't access wordpress, not even through cpanel

So, I'm making this wordpress website.
I've got full access to the entire cPanel.
I install wordpress, and the domain is always redirecting me to this stupid page.
Here you have the public_html folder.
And when I try to access the Wordpress Admin panel through cPanel, it gives me this random link and redirects me back the page I meantioned earlier.
Any help?

i am redirected to another site on successful login

i recently took over a wordpress site that is a sub dormain of an eCommerce site.
i have installed it on my local wamp and i now wish to log into the wordpress dashboard.
the problem is that the once i log in to wordpress it redirects me back to the old site.
i am now trying to work out where the redirect functionality might be located.
i have already changed the base url address in the table wp_options.
within this table i changed both the siteurl and the home.
i also tried changing the wp-config.php file with the new url:
define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');
i would appreciate any ideas on where the redirect functionality might be located.

wp-admin vs wp-login in wordpress

Any ideas on the difference between https://mysite/wp-admin vs https://mysite/wp-login?
Thanks.
Actually both URLs will let you login into your site's dashboard.
However, they are different:
While wp-login (which should be wp-login.php) is a php file in the root folder which returns the form to login into your WordPress, wp-admin is one of the three default folders (wp-admin, wp-content and wp-includes) which contains internal files such as libraries and scripts.
So, if you haven't logged in yet, by going to wp-admin you will be redirected to yoursite.domain/wp-login.php?redirect_to=... If you are already logged in, by going to wp-login it will show you once again the form to access, and wp-admin will take you directly to your dashboard.
wp-admin redirects to wp-login.php. I.e. there is only one admin log in page.
Both of these URLs will redirect to the WordPress login page. If your 'wp-login' url is not working properly you can use another one 'wp-admin'.

Page not found on localhost WordPress site

I am working on a WordPress website on localhost using Xampp. Today I changed the site URL and home URL in phpMyAdmin to a host; I plan on transferring my site too, but I ran into some issues so I had to revert it back to localhost.
But now it doesn't work! I have tried 'localhost' and 'localhost/wordpress'. With the latter, I can see my site's header and footer and theme colors etc., but the main frontpage says "not found" and other menu pages also say not found. When I try to access wp-admin, it can't find it either! So I can't even log into the admin panel.
Folders structure:
C:/xampp/htdocs/wordpress
Inside the wordpress folder, there's .htaccess, index.php, etc. And three folders: wp-admin, wp-content and wp-includes.
I don't know why this isn't working any more, I only changed my database's site URL temporarily! Now nothing works and can't access admin panel.
make sure you changed the siteurl and home values in the wp_options table to your localhost like that http://localhost/site
delete the htaccess file and try to open the site and see
if you have a security plugin that changes the login url page try to disable it by renaming it's folder name

Cannot login to wordpress admin once i change the admin url

I have just installed a wordpress website, and i was working with some security measures but now my wordpress admin is not loading. It gets redirected to page not found.
Steps which i have done
I have installed wordpress in the following url icg.projects.com
Then i have moved the wp files to a sub-folder named "core-files" (as per this url http://www.ampercent.com/move-core-wordpress-files-custom-directory/6211/).
Till now frontend and wp admin works fine
Now i just tried to change the admin url to icgadmin (ie. from icg.projects.com/core-files/wp-admin/ to icg.projects.com/core-files/icgadmin/). The problem is after giving the username and password in wp-login page my url becomes http://icg.projects.com/core-files/icgadmin/. But the content of the page is "Page not Found". But the actually i should get the wordpress admin.
Any help would be really appreciated.
Thanks in advance

Resources