website keeps redirecting into old wordpress url - wordpress

i placed a wordpress site in a subfolder in public html and after a while i completely deleted the wordpress subfolder and i want to do something else with server storage but even though now there is no folders in public html in its completely empty when i go to the main domain or root directory it keeps redirecting me to old wordpress directory and there is no subfolder in public html so it gives 404 error and its weird because i have no files in public html.
i did put an index.php in public html and it did not work. site ignored that and got redirected to old wordpress subfolder.
please someone help...
when the wordpress site was up in the subfolder there was another wordpress site in root directory but i did not us it and i deleted that too i dont know if that has anything to do with it
p.s. i deleted everything that belonged to the old wordpress site including databases

It could be that your domain is set to direct to the subfolder.
Did you install wordpress via an software manager at your webhost?
They sometimes set the domain to that application folder automatically.
You should check your domain settings at your host, maybe there is the reason.

You may want to check you Domain and remove the url for the domain or subdomain. It can't resolve to the file path associated with it and that is what is triggering the 404.

Related

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

Moved Wordpress to a subdirectory, don't want site-url to redirect to my subdirectory

I've searched a while but couldn't find an answer to this question yet. I had WP originally installed in the site root and moved it to a subfolder and went through the common steps necessary. I do this because I want to run wordpress only for blogging reasons and keep another HTML site as my main project that I want to access through my domain www.example.com and the wordpress blog through www.example.com/blog/
I moved the WP system therefore to /blog and changed the site address and wp address to that folder and followed the usual steps. Everything works just fine. Still when I enter my domain it redirects automatically to the /blog subdirectory and not to the site that lies in the root that has a index.html. There is no .htaccess file in the root or anything similar. How is that possible? Happy about all suggestions.

CNAME links to WordPress blog but redirects cgi-sys/defaultwebpage.cgi

I've got IIS hosting site(www.site2.com) and wanted to add wordpress blog site on this website, but wordpress is PHP based so I used a tricky way.
I've got PHP hosting site(www.site1.com) so set up self-hosted wordpress blog on this site then adding CNAME on site2.com domain, I believed it should work.
So, installed wordpress in PHP hosting site(cpanel hosting) and create blog site on this wordpress, the url is www.site1.com/blogb. Then created subdomain from cpanel(blogb.site1.com) which linked to www.site1.com/blogb as root folder.
When I go to blogb.site1.com, it's working so good.
One last thing what I did is adding CNAME from site2 zone manager.
blog.site2.com -> blogb.site1.com
I think this should work because blogb.site1.com is working properly.
But when I go to blog.site2.com, redirected to "/cgi-sys/defaultwebpage.cgi" page then showed "SORRY ... If you are the owner of this website, please contact your hosting provider" message.
I cleared cache from my browner and tried from other browser but didn't work.
And added rewrite rule on .htaccess file on site1.com root folder but nothing worth.
I checked site URL from wordpress settings page, the site address(URL) was "blogb.site1.com" which was correct.
I believe if destination url of CNAME is working, the CNAME should work.
But when I try to access a file in destination folder using this url, blog.site2.com/readme.html, returns 404 not found while blogb.site1.com/readme.html is working.
So, CNAME(blog.site2.com) seems be pointing wrong directory.
Is there anything I missed or did wrong?
Thank you,
B

Wordpress - Moving website admin section

I have successfully moved a wordpress site from /test directory to the root, so now the website url looks like www.example.com. Fine.
However the admin section (wp-admin) still points to /test directory and so the url looks like www.example.com/test/wp-admin/...
How can I make it like www.example.com/wp-admin/...?
Please notice that I'm not interested in a simple redirection (now the customer is able to access the admin section with www.example.com/wp-admin, but then he's redirected to www.example.com/test/wp-admin/..., and it's not what he wants.
Thanks in advance
Everything is documented in http://codex.wordpress.org/Moving_WordPress
You may need to change many URLs in post/page content; if so, see https://github.com/interconnectit/Search-Replace-DB as suggested in the above Docs.
There is no need to create a new Wordpress install.
Also see http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install if you want to keep core Wordpress files and folders in a subfolder, but have the site appear to be at root for the end user.
You should not move wordpress this way. Here is what you do:
Install Clean Wordpress Installation on the new domain.
(www.original.com)
Use a plugin* to make back-up on your test domain.
(www.original.com/test/)
Install plugin* on the new domain, and restore back-up from test
domain. (www.orignal.com)
Update your style.css, header.php, index.php & footer.php if it
contains hard written links to your test domain.
You cannot simply move a wordpress installation - as most entries, links etc. are stored in the database. If you move folders in your ftp they will still point to the old database. This is why you have to duplicate your site, where the database entries will be automatically updated to your new site domain. Hard written links in any theme php files will have to be updated.
Although your problem depends on how your pointers/sites are set-up in c-panel. If you have to change pointers for your directory, you might have to back-up your website and upload it to a different domain so your new site can access the restoration back-up file via http request.
*Plugins such as wp clone, duplicator.

why site continously redirected although I have removed the .htaccess

I am working on a site which is installed on
home/myuser/mywebsite
in this folder there are two further folders one is members and other is wordpress
My site is accessed in a way like this
http://www.mywebsite.com/members/
wordpress folder contains few pages which are used only for regersitered members, so if I access a page from wordpress folder, url becomes..
http://www.mywebsite.com/protected/?pageID
now the issue is, I cant login it wordpress folder if I use
http://www.mywebsite.com/wordpress/wp-admin/
I am redirected to
http://www.mywebsite.com/members/wp-login?redirected_to......
I am messing with it for two days, but cant figure out what is happening here
can somebody GUIDE me please
Have you checked
siteurl
home
options under wp_options table.
They must have value http://www.mywebsite.com/wordpress in your case.

Resources