Forum Moderators: phranque
I did a terrible mistake with my blog site :(. I tried to do the WWW/NonWWW and this is what happens; the homepage displays correctly but when I click on any of my links/pages, then '404 Error - Not Found' shows on every page.
I'm not sure what to do here, but I am desperate need and want to fix this up as soon as possible.
Please help me.
Many thanks in advance
CHEERS :)
Also, if you have access to your server error log file, it will often tell you what is wrong, or if not, the filepath that shows in the error log entries often gives a very strong hint as to what is wrong.
Jim
I'm not sure how to access my server error log file, where do I go to do that?
By the way, my blog site is using wordpress so hope that helps.
This is what I got:
ERROR PAGE http://www.example.com/about/
---------------------------------------
404 Error - Not Found
The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request, or the file is not accessible in the requested directory. Please verify that:
* You have used the proper case; requests ARE case-sensitive!
* You have entered the URL correctly. (i.e. proper directory/filename)
* You used the FULL URL. (i.e. proper file type: .html, .gif , .jpg, etc.)
* You use a tilde (~) before user directories. (i.e. www.furcen.org/~jurann/ )
* The user/file still exists on this server.
---------------------------------------
.httaccess file code is:
---------------------------------------
RewriteEngine on
#
# Externally redirect direct client requests for "/index.php" to "/"
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /index\.php
RewriteRule ^index\.php$ http://www.example.com/ [R=301,L]
#
# Externally redirect non-canonical, non-blank hostname requests to canonical hostname
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
---------------------------------------
Is it safe to redirect 301 on a blog site?
I think that's all of it but let me know if there is something else that I can provide you with.
I comment out the first block of code but it didn't work. THE WORSE CASE THAT HAPPENED RIGHT NOW IS, I tried to remove the .htaccess file but accidentally deleted the main directory folder and don't know how to retrieve it back since the trash bin is empty :(....this is a very sad moment for me and tried very hard to get this working.
Oh well, will have to re-store it again and start from stratch :( [_o ¦ o_]
¦ __ ¦
¦ / \ ¦
\____/
I will start doing that from now on, but are you talking about a copy on the server or hard drive? I have a backup copy on hard drive (well obvious), but I was thinking you meant on the server. Just to make sure I'm on the same page, do you always make a backup copy on the server so in case of an emergency, which I agree with you more.
That means, there will be 2 folders of the same website but one is active/live on the net and the other one is a backup.
Will definitely consider this as a future reference.
Thanks again Jim
CHEERS :)