Our company website uses Wordpress and I am looking to set up a second installation in a subdirectory of the main site. The second site has been set up and seems to work fine externally, but inside our network(which has the same domain as the website) the secondary site does not load. For example;
www.systechinfo.com - loads fine
www.systechinfo.com/wp-admin - loads fine
www.systechinfo.com/emc - doesn't load internally, but loads
fine externally
We are using the www redirect hack internally to get the main site to load, but I am not sure if this is a DNS issue or a redirect issue on the HTACCESS. Please advise. Thank you for your time.
In the new subdirectory has to upload the files and install wordpress. The other option is to create multisite. http://codex.wordpress.org/Create_A_Network
Your site is already running.
Related
I have a weird situation with a client:
The root directory has a custom built CMS serving the site.
They want to rebuild the site in stages as it is very big.
So they want the new site in Wordpress and for the first stage just to build specific pages in Wordpress.
So obviously I would install WP in a sub directory or a different directory than root.
BUT, they want the pages served by WP to not indicate a different URL path so if we create a page called page1 the URL needs to be:
http://domainname.com/page1 not
http://domainname.com/wp/page1
Obviously if a browser navigates to:
http://domainname.com/page1
the CMS installed in root will try to serve the page and return a 404.
So my thinking is it must be possible to add a bunch of rules in the root folder htaccess (or with PHP) that check a list if the incoming request is for a URL we indicated in the list is meant to be served from WP, then to pull the files from the WP sub directory (bypassing the CMS installed in root) and rewrite the URL to root.
So if I go with my browser to:
http://domainname.com/page1
I will get the WP page
and if I go with the browser to:
http://domainname.com/wp/page1
it will server that page but with a 301 redirect to:
http://domainname.com/page1
Makes sense? Anyone know if this is possible?
I have tried but my htaccess/apache skills are not high enough to solve this one.
Thanks
You are in a very complicated position, in one way that could be very easy if your client doesn't bother with the subfolder which is pretty reasonable and cheaper because you don't have to spend time trying figure out how to get a clean URL, instead of that you can have a semantic URL like:
http://domainname.com/page/page1
So you have your Wordpress installation in the "page" folder and everything looks transparent for the user.
On the other hand, if you what create re-directions for each page you create in the new Wordpress you can do it in the Cpanel if you have access to the server.
The problem is you have to do after a new page publication.
In terms of SEO, you are getting a Soft bounce, which is not terrible but not terrific.
when you migrate all the content to Wordpress you have to delete all those redirections and will be more work to do in terms of SEO
The bottom line is if you have enough arguments for why you client could let you do it in the easy way that can help you a lot and save a lot of time.
I'm trying to display a wordpress site to a customer using ngrok.
I tried using different comments.
first of: ngrok.exe http 80 this works i see the folder where all my sites are in.
Ngrok
website 1
website 2
website 3
but when i target my wordpress website the domain changes to localhost/website1
making it impossible for the customer to see his website.
i tried setting the root of my wordpress to my custom ngrok domain. this makes it kinda work, except for the images and assets that cant seem to find their location anymore.
also i tried installing the wordpress plugin (ODT relative urls). this also broke more then it fixed.
I tried using diffrend ngrok comments, they worked but didn't change a thing.
If it is any help, i use xampp to make my files to a localhost server.
in short -
ngrok display localhost/WEBSITE instead of the desired NGROK_LINK/WEBSITE
Problem was wordpress home url was set to localhost, when loading the new url it redirected back to localhost from the database wordpress home property.
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.
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.
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.