Wordpress blog doesn't show up online? - wordpress

I have created a self-hosted wordpress blog and on my ftp server everything is under
/public_html/wordpress/..
then you have /wp-admin and /wp-content etc..
but when I got to my website the theme doesn't show up, it only shows a white page with
www.******.co.cc
" index of
/wordpress"
I figured out the wordpress blog has installed its own directory so if I want to see my website I need to enter that directory first. So I tried to type
www.*******.co.cc/wordpress/
and it worked my website is all here.
BUT ! I don't wanna have people to type www.**.co.cc/wordpress/ since the site was originially known without adding /wordpress at the end.
If I move all my wordpress folders under the root
/public_html .. will it work ??

See http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory to move the site to root.
After the move, if all you see is "index of...", add
DirectoryIndex index.php
at the top of .htaccess

Under Settings > General
Check your site address(url) and wordpress address(url) to make sure they are set how you want them.
The site address should have the url for where you want people to view the page (without the wordpress extension. )
You most likely also have to move your index.php and .htaccess file out of the wordpress file and into the root folder.
Go here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory and
View the instructions under the heading "Using a pre-existing subdirectory install"
It is good to have FTP running while you do this in case you lock yourself out of the admin by inserting an incorrect filepath.

This is because you have installed your wordpress script in the
public_html >> wordpress
Install your wordpress in the root i.e left the directory field empty
/

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.

Remove blog folder name when keep wordpress inside cakephp webroot

Due to some requirement I have to install wordpress in cakephp site, I installed it inside app/webroot/blog and after some modification I can access wordpress blog as
mysite.com/blog
Now the problem is that wordpress post url should not contain word "blog" ,currently they are as
mysite.com/blog/post_url.
They should be like
mysite.com/post_url.
I have open to install wordpress anywhere.
Thanks
Rich
Is your problem that you truly don't want the word 'blog' to appear in the url, or that you can't see your posts because their path is wrong? If the latter, you can fix it by changing the root path in the wordpress settings, add '/blog' at the end of your default path and all should be well.

Wordpress posts & pages using the wrong index.php

I've updated the main page for my site (http://www.goldfinchnj.com) to show the most recent posts from a wordpress site (http://www.goldfinchnj.com/news) The main page is mostly HTML, but I had to make it a .php file so it would pull in the 3 most recent posts.
The problem is all the pages & posts on the wordpress site seem to be using the index.php file from the root directory (the index for the main page).
Before this issue started, I changed the directory of the wordpress install. It was news.goldfinchnj.com, but I wanted it to be goldfinch.com/news.
Any ideas how to fix this?
How have you changed the directory? Have you updated all links in the database? Manually or you used search and replace plugin? Do you host wp on apache server? Do you have correct index.php in news subfolder and correct .htaccess?
Fixed it. Took another look at the .htaccess and had to update the path for the IfModule mod_rewrite.c

Wordpress - subdomain to root

I've been building a wordpress site on a subdomain while having my old website in the root directory. Now I have finished the site and would like to move it into the root. Is there a way how to 'redirect' my site so I don't need to move all the files and databases from the subdomain? The address should appear as www.myweb.com, though.
I have these folders in my FTP:
public_html, _sub, tmp
The subdomain is currently located at _sub/wc/
Thanks!
This codex article should explain the process, I've used it successfully myself several times: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install
According to wordpress you can leave your files where they are and put the following into your wp-config file:
define('WP_SITEURL', 'http://www.example.com/new/');
define('WP_HOME', 'http://www.example.com/new/');
Or you can:
In the box for WordPress address (URL): change the address to the new
location of your main WordPress core files. Example:
http://example.com/wordpress
In the box for Site address (URL): change
the address to the root directory's URL. Example: http://example.com
Take a look at moving wordpress: Moving_WordPress and editing the wp-config Editing_wp-config.php as well as Giving_WordPress_Its_Own_Directory
Wordpress gives a lot of information about moving domains etc, and it is well worth reading their documentation on the matter.
You may want to remove your old website files (it is good to have a back up of the old version anyway) so that they do not conflict (esp if they are WordPress).

Moving Wordpress site subdirectory errors

I have just moved my testing development subdirectory worpdress installation to my root folder using the WP-Clone plugin.
The problem now is my main site (previously mysite.com ) shows (mysite.com/site) now. and the subdirectory is shwoing in all my links
I have tried going to settings and removed the /site from wordpress URL and Site address URL.
But it broke my site and disabled me from accessing my wp-login.php .
I fixed it by editing my wp-config.php and adding :
define('WP_HOME','https://mysite.com/site');
define('WP_SITEURL','https://mysite.com/site');
and now my website works perfectly. But it still shows mysite.com/site and i am unable to edit my URL and Siteaddress from my wp dashboard anymore.
How do I Remove my website subdirectory (/site) and still have it work and not break my site's themes and all? How do I go about this? Really really appreciate any help! Thanks!
By adding those constants to wp-config.php you're overruling any setting in the database. That's why you can't edit them in the admin panel.
So the first step is to change those constants to:
define('WP_HOME','https://domain.com');
define('WP_SITEURL','https://domain.com');
Then delete your htaccess file. (.htaccess in your root folder).
Once you've done this navigate to http://domain.com/wp-login.php
Login to your site and go to Settings -> Permalinks. Hit save which will regenerate your htaccess file.
Finally you'll need to update existing links. I'd suggest installing a plugin called 'Velvet Blues Update URLs'.

Resources