why site continously redirected although I have removed the .htaccess - wordpress

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.

Related

Wordpress redirecting to wrong homepage

I worked for a few days on XAMPP with a wordpress platform. After I bought a domain, I decided to use Duplicator plugin to transfer my whole wordpress snap to the new server. Everything is working just fine except for one single thing: whenever I go to my website, instead of visiting the actual page that should be "www.example.com/welcome" it redirects automatically to "www.example.com/wordpress". I made some research about it and discovered that usually wp is installed in a wordpress directory, but I completely made sure that:
on htaccess there is no /wordpress directory url
on index.php there is no /wordpress directory url
on wp-config there is no /wordpress directory both on SITE-URL and HOME
made sure that on the wp-admin config panel in the General section, the URLs are both set to the root directory.
For some unexplicable reason, everything is working fine, www.example.com/shop works for example, but if I set from the customization panel a page like "www.example.com/dummy" as homepage, then THAT page won't be found because it automatically redirects "dummy" to "/wordpress" which of course does not exist. You can type www.example.com and be redirected to www.example.com/wordpress and the same thing happens if you type www.example.com/dummy, since now that should be the homepage.
Can anyone explain me why is this happening? I searched everywhere but I can't find an answer.
I'm using the Storefront theme and Woocommerce plugin if that might help.

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.

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.

Tried to Move Wordpress from Subdirectory to Domain, Site Broke

I tried to move my beta Wordpress site to my live domain, and now everything's broken. I have no idea how to fix this. Here's what I did:
I had a site running at mydomain.com, but I wanted to rebuild it. So I downloaded a new installation of WordPress at mydomain.com/test and built a new theme.
I finished the new theme and was ready to move it to mydomain.com. I decided to leave everything in the subdomain for the move, so I followed these instructions.
It worked fine. Mydomain.com was displaying the new site.
Then, I stupidly decided that I wanted to rename the subdirectory from /test to /v2 (because I wanted a cleaner name and I wanted to leave /test open for testing rather than use it for my new site).
Everything broke.
I tried to change the subdirectory back to /test because the site was working with that, but everything is still broken. The theme doesn't seem to be loading. My site is not displaying any styles. My photos aren't displaying correctly. My plugins are gone.
Is there any way to fix this? Please tell me I didn't just lose 3 months of work...
This is my site.
The database,will have the url set to mydomain.com/test
you will need to update the db entries see below script
http://dan.doezema.com/2010/04/wordpress-domain-change/
Sounds like you need to update your siteurl and home values in your Wordpress Database. Log in to your cPanel and go to phpMyAdmin. From there you should be able to open your WordPress MySQL Database.
Go to your wp-options table and make sure that your siteurl (option_id 1) and home (option_id 37) values are using the correct path ie http://mcography.com/test
You may also need to update your permalinks. Even though you don't have to change any options, saving the permalinks again should refresh your .htaccess file.

Moving down entire wordpress installment one folder

I've been developing a wordpress website on the same place where it's supposed to go live, just in a /beta folder to keep it from regular visitors. Now it's done, I need to put it live, by moving the entire wordpress installment I have in the /beta folder, down into the root of the domain.
The problems I encountered when I first tried this were that everything automatically links back to the /beta folder, for example my stylesheets link to the right location but the /beta/ folder is included in the link, and I can't seem to find out where to change this. I've tried the Yoast wordpress move tutorial but that seems to be made for entirely different domains, and this is inside the same domain.
So, how would I change the automatic linking? It's not all in the .htaccess file, that's just for in-site permalinks.
The Wordpress Codex has a canonical document for this, Moving WordPress.
Whether you're moving from domain to domain, or inside the same domain, doesn't matter. The process is always the same.

Resources