Wordpress looking in the wrong subdomain for wp-content - php

I have my wordpress installation at /var/www/html/wordpress2 and there's a totally separate wordpress installation at /var/www/html/html/wordpress.
When running the worpdress2 installation, I get errors saying it can't find /var/www/html/wordpress/wp-content/theme/.... How do I change it to look for these things in wordpress2 and not wordpress?

Did you transfer wordpress to Wordpress 2? If so you need two separate databases, one for Wordpress and the other for Wordpress 2. Then you need to check the wp_options table to have their correct subfolder in the site URL and home URL.

Follow these steps in order to transfer your WordPress site from one location to another.
Change the option_value(your root url of current wordpress site) corresponding to id(value 1) and option_name(value site_url).
Access your wp-admin(siteurl/wp-adimn). Go to general-setting panel and change Site Address (URL), same as WordPress Address (URL).
Hope this will work for you. Same process you can follow to move WordPress site from local to server or one server to another.

Related

"Wordpress MultiSite Through Azure, Additional sites all say "The resource .... is unavailable

So I'm working through windows azure to make a Wordpress multisite (sorry if this question seems obvious,I just can't seem to find any documentation or videos on this being done before, though I'm sure it has.)
I've set up my Wordpress multi-site through windows azure portal gallery.I have the Network admin dash board. So I'm confident I've done the first steps correctly in converting a Wordpress into a Multisite. I set up the network as sub-domains.
The issue is whenever I make a new website through the multisite network admin dashboard and try to edit it i just get "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
my question is do i need to custom map domains in order for this to work? or do i need to be adding another step with azure.
How can I just create the Multi-sites without having custom domains for each one if this is the problem?
Thanks!
If you setup the network as sub-domains you have to have a custom domain for the website and point your subdomains. About how to do that, see Adding custom domains. Otherwise, you could choose sub-directories as the type of multisite network instead.
For more information on sub-domain vs sub-directory setups see the Types of multisite network article on the WordPress Codex.
However, according to the error you aforementioned, seems there is a mistake in web.config file WordPress generated. You can find the correct one in following threads:
How to set-up Wordpress Multi-sites on Azure using sub-directories
getting 404 error on admin panel for sub-directory multisite on a sub-domain in wordpress

Do I need the WordPress MU Domain Mapping plugin installed to use WordPress Multisite

Have been trying to setup and configure WordPress Multisites on my domain.
I have installed and activated the "Sub Domain" install.
I am simply looking to create site likes this.
Main website:
http://www.example.com
Sub Domain Sites:
http://docs.example.com
http://demo.example.com
So far I have created the sub domain http://docs.example.com in the WordPress Dashboard. To be able to access the WordPress Dashboard for this sub domain I had to create a sub domain in cPanel that pointed docs to the public_html directory. Also in my VPS.net hosting panel I had to create an A Record for docs pointing to the IP address of my server
My issue is that when I try and view http://docs.example.com in a web browser I always get a blank white screen.
Do I need the WordPress MU Domain Mapping plugin installed to use WordPress Multisite. I have installed it previously but it didn't make a difference.
Any advise would be greatly appreciated.
Thanks

Wordpress clone in subdirectory

I am trying to make a clone of a Wordpress site into a subdirectory. So, I will have two installations, one in the root of the domain, and one in /test. My problem is that, even though I have changed the values for siteurl and home uri in database, my links will redirect to root. So, a page like domain.com/test/contact will redirect to domain.com/contact, which is not what I want.
You need to follow these steps to clone your WordPress website from production to staging server -
1. First export database of production server WordPress website and open SQL file in an text editor.
2. Then find your domain name(domain.com) and replace it at all places with your domain name/test like domain.com/test.
3. Import production SQL file to test database from phpmyadmin.
4. Open staging WordPress admin like domain.com/test/wp-admin and go to Settings > Permalink section. Just click on the Save button to update htaccess file.
5. Optionally you can go to setting at admin page and save all general settings, menus and check Widgets area too.
6. Now you can access your domain.com/test WordPress website.
Maybe is because your htaccess settings rewriterules.
Take a look to it or post it here.
Good answer, anil-meena
However these 5 steps can be done automatically with the wordpress plugin
WP Staging. I developed this plugin because the manual process of creating a clone site for testing takes too much time and is too complicated for the regular users.
So i hope it is useful for you.

How to move a subdomain in blogger to wordpress?

I have a website that is hosted in Blogger with a custom domain. I also had a subdomain that used a different theme than the main website. Now I want to move to WordPress. I got a wordpress hosting from GoDaddy and used the installation wizard to install WordPress. Now, there is step during the installation that asks for the domain for the website. What I want is that my domain should remain in Blogger, but subdomain should be in wordpress. Is this possible?
Or, even if I move my main domain to wordpress, still is it possible to have a subdomain in wordpress with another template. I am a newbie to WordPress.
Okay, Follow these steps:
1) Go to database and choose wp_option table. Change site_url whatever you want in wordpress.
2) Go to "General" in setting option in admin panel and change both url given in box.
that's it.
If you want the subdomain should work with WordPress site, then you just need to point CNAME or A record to Godaddy hosting account and the subdomain site will be live with WordPress.

How can I change change links to point to custom domain on Azure Webites

I bought a custom domain from godaddy and made a wordpress blog with Azure Websites. Everything worked fine, my custom domain name is working but I have a small problem.
Let's say that my custom domain name is "azuresite". Well, I have the domain "azuresite.com", but when I go to the website and I click on a link (let's say the about page), it goes to azuresite.azurewebsites.com/about instead of going to azuresite.com/about
Do you have any idea what should I do to make the links point to my custom domain instead of the azurewebsites domain?
Here are two screenshots that may help you to better understand the problem:
GoDaddy Zone file: http://prntscr.com/2ida3c
Screenshot of my website: http://prntscr.com/2idaqg
It turns out that I just had to go to wordpress settings and change my site address from mydomain.azurewebsites.net to mydomain.com. Here's a screenshot:
http://prntscr.com/2kjwzp

Categories