Troubles with everything that is not a homepage of wordpress site - wordpress

I am working on the site: http://cancerhope.com/
If you go to the home page it works but if you click on any of the links it doesn't. It did work before but I had a nameserver issue that I resolved last Friday. I have tried various permalink settings (default, postname, date, etc.) It is currently set to postname but none of the pages work and I am not getting any errors in my console. I have tried turning off the plugins to no avail.
Here is a page that shows up blank: http://cancerhope.com/consultation/
I have tried deactivating all the plugins and changing the theme to a standard WP theme. I have deleted the htaccess file and reset the permalinks to default as well as postname and other settings. I even deleted the htaccess file between these changes.
Current htaccess code is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Nothing seems to work.
Strange thing is that the blog page works:
http://cancerhope.com/blog-2/
The actual article that we have there works to:
http://cancerhope.com/2015/08/welcome-to-cancerhope/
Any suggestions?

Related

Changed the URL and ROOT. Main Page won't load. Wordpress

I am trying to redesign a website from a friend and it's chaotic as hell. Now I am stuck a bit.
The old domain it something like http://www.website.com/folder/
I am trying the get rid out of the "folder", so I changed the setting in the wordpress setting and the root in the web-provider. The whole website is working fine, also the Wordpress admin area. But if I'm trying to get into the "home" page, it won't load - or it is loading endlessly.
Do you have any idea how I could fix it?
Regards and thanks,
Natts
A piece often forgotten is the .htaccess file (found in the root of your WP install); I especially suspect it because you're going from a subfolder to no subfolder.
Back it up, then override it with the default WordPress values (or delete it and go to Settings -> Permalinks in WP Admin)
Default .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Wordpress Permalink Settings not working

I have installed a test blog on RichBloggers Domain. I am trying to use permalinks. With My current settings as follow
The site links works but with query string in url like
But when I change the setting to post name
My Links give me error
Here is my .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
What am I missing?
Finally I figured it out. The Hosting Server I am using has old Plesk on it and doesn't have cPanel so the PHP version is outdated. URL rewrite is not working because Mod_rewrite is not enabled.
check by deactivating other plugins once and check by setting theme from WordPress default theme.
and then by setting permalink again.
check if this issue still coming. otherwise it will be conflict issue.
Simple click again the permalinks post name radio button and save it, it will solve your problem now.
Check if the category exist if not then it would throw that error.

Images are not working after redirecting to root/ wordpress

I have problem with images on my website. I have installed wordpress in blog directory, co I could access my website like mysite.com/blog. I have followed tutorial on this page Giving_WordPress_Its_Own_Directory (Using a pre-existing subdirectory install), to redirect it, so I have changed site address url in settings to mysite.com, add index.php to root and add /blog/wp-blog-header.php in this fileā€¦ I also have to update permalinks and htaccess copy to root, with following code
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Now my website is working fine but images are not working. I can see them but after click on them it shows 404 error page. There is /blog/ in image url. If I remove blog from url manually, it shows page with image (lightbox is not working) Could somebody help me how to solve this? thanks
I'd try Better Search Replace plugin to change urls of images in database.

Wordpress blank wp-admin and some pages are not working with www

I have moved an Wordpress from one server to another. The address remained the same, so nothing is changed in the URL structure. The steps followed are as described in Codex page.
However when I try to access the admin page (www.mydomain.com/wp-admin) I get a blank page. Also, the same happens to some pages on my site - but not all of them. Some are working some are not.
In my .htaccess I have the usual:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Under wp-admin folder, .htaccess file is empty.
After a lot of testing, I find out that when I access http://mydomain.com/wp-admin (without www) is loading the login page, but after entering the username and password I get another blank page (it basically redirects to www.mydomain.com).
I believe this is not a .htaccess, but something inside Wordpress. I have the correct URL and HOME setup in wp_config (also because the domain did not changed after moving to a different server).
Strange thing is that some pages are working, some don't. What could be the reason?
I found that the reason for this is a blank space left on wp-config.php file, which made WP crash (not sure why other pages were working though...).

wordpress 404 not working properly

I have a Wordpress site with permalinks set to /%category%/%postname%.html. When I visit to a non-existing page, let say, example.com/non-existing-post, Wordpress 301-redirects to homepage instead of showing the 404.php page, which is inside the theme's package. Below is the htaccess code;
AuthName "protect"
AuthUserFile "/home/sitename/.htpasswds/public_html/passwd"
suPHP_ConfigPath /home/sitename/public_html/
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
When I tried to disable custom permalink structures, it returns a error 404 but not with 404.php page that I preferred(normal Apache error, I guess).
There have been a lot of similar discussions about this "bug", please see the links below. All of them not seem to be resolved. :(
http://wordpress.org/support/topic/404-pages-not-working-1
http://wordpress.org/support/topic/404-pages-not-working
What's causing Wordpress automatically 301-redirect a page that is supposed to show 404 error?
UPDATE(Feb 21, 2013) - Problem's still persistent. I think it's a bug in the wordpress core that involves in "pretty permalinks" redirections.
Still I'd like to solve this problem since I've got a handful of Wordpress sites that have this and I think other people are experiencing the same bug in their sites.

Resources