Cannot login to wordpress admin once i change the admin url - wordpress

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

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?

Wordpress admin page cant be found/accessed

FYI: I am able to access the c-panel
Admin page displays the following:
Front end seems to be displaying properly:
this is because your admin dashboard ulr is redirected (maybe by a plugin, server setting, .htaccess...).
You can access wp dashboard login by this url - Basically, just add "/wp-login.php" follow you site URL.

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'.

login error when I get to "wp-admin"

I registered my new domain "aaa.com"
I made a subfolder "bbb" , installed wordpress in there.
I installed few plugins on "aaa.com/bbb"
Advanced custom fields
statcounter plugin
WP custom widget area
wp cerber
custom sidebars
I set up subdomain as "bbb"
I set wp-home url and wp-site url by "bbb.aaa.com" in options page.
subdomain seemed to work well.
when I go "aaa.com/bbb", wp shows 404 page
url "bbb.aaa.com" works fine. when I clicks some permalink or page link, the urls look like "bbb.aaa.com/postOrPageUrls"
HOWEVER, there was a problem when I typed bbb.aaa.com/wp-admin
WP redirected me to the login page - it was what I expected
But, I couldn't entered admin page even though I typed ID,passwords.
wp doesn't showed login errer message, It just refreshed everytime I press submit button.
I typed url as "aaa.com/bbb/wp-admin/" and I could enter the admin page with that url.
I figured out that thre's difference between two login pages.
"bbb.aaa.com/wp-admin" redirects to "bbb.aaa.com/wp-login.php?redirect_to=http%3A%2F%2Fbbb.aaa.com%2Fbbb%2Fwp-admin%2F&reauth=1"
wait, "bbb.aaa.com/bbb/wp-admin/" ?
"aaa.com/bbb/wp-admin" redirects to "bbb.aaa.com/wp-login.php?redirect_to=http%3A%2F%2Faaa.com%2Fbbb%2Fwp-admin%2F&reauth=1"
so that mean, the login page redirected from "bbb.aaa.com/wp-admin" points wrong address: bbb.aaa.com already points the subfolder bbb, but that login page finds the subfolder bbb again.
It was long story. now I'm trying to fix the problem. login page - redirected by wp-admin - redirecting to wrong url. Can I get some hints?

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

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...

Resources