Can't access wordpress, not even through cpanel - wordpress

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?

Related

Cannot able to access wp-admin page

I have a wordpress website in my ubuntu server. Eg, my website url is
xyz.com. when i'm trying to access wp-admin page it should be xyz.com/wp-admin. But it redirect to another url like xyz.com/xyz/wp-admin
Can anyone give solution for this issue?
Wordpress admin dashboard is /wp-admin from whatever directory your website is installed.
For instance, you have a website https://dijofrancis.com and wp is installed in the root directory then your admin url is https://dijofrancis.com/wp-admin
If you paste your .htaccess file (situated at the root of your webserver directory) we could help a little more.
I once had a similar issue when I stupidly made a global redirect with a wildcard on my website.
If you say that when you access:
xyz.com/wp-admin
it redirects you to
xyz.com/xyz/wp-admin
Then it might be a permalink issue.
Re-make your permalinks from WP dashboard.
Also, you can try to use
https://wordpress.org/plugins/wps-hide-login/
and test from another link (if issue is permalink, maybe WPS HL will interact with wp-admin in a way that will work for some reason)

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.

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

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

WordPress on add-on domain

I have installed WordPress on an add-on on BlueHost. The addon domain is linked to a sub-folder of the main domain FTP, called addondomain-folder.
When I go to addondomain.com, the WP site displays ok.
The problem is with the wp-admin panel. The panel displays incorrectly, has broken links to all images and stylesheets and I can not access any area as I always get redirected to: addondomain.com/addondomain-folder/wp-admin/... instead of addondomain.com/wp-admin/
I have checked the wp-options table in the database and both siteurl and home are set to addondomain.com
Any solutions to stop wp-admin thinking it is in a subfolder?
Ok, the problem was a hidden .htaccess file which messed everything up.

Resources