Error 404: NOT FOUND! | Wordpress Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSSsp_TopicIcon
Error 404: NOT FOUND!
April 11, 2011
7:13 am
Avatar
nat101962
Member
Members
Forum Posts: 5
Member Since:
April 7, 2011
sp_UserOfflineSmall Offline

Hello! Laugh

 

After I restore my backup, my homepage comes up fine.  When I try to go to a previous post I get a 404 Error where the page is not found.  Do you have any idea what I'm doing wrong.

 

Thanks so much for your help!

April 11, 2011
10:28 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Most probably the permalinks urls do not work for some reason, try and check if:

 

1. .htaccess file exists and has the correct code inside for Permalinks

2. mod_rewrite is enabled and working properly for your account

 

Ovidiu

April 11, 2011
1:07 pm
Avatar
nat101962
Member
Members
Forum Posts: 5
Member Since:
April 7, 2011
sp_UserOfflineSmall Offline

You are the man!!!!!!

 

Thank you so much!

April 19, 2011
2:05 pm
Avatar
Kenneth
Member
Members
Forum Posts: 9
Member Since:
April 19, 2011
sp_UserOfflineSmall Offline

I have the same problem on a WAMP server on my computer.

What is the .htaccess file supposed to look like? Mine is as below.

----------------------------------------------

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<IfModule mod_security.c>
    SecFilterEngine Off
</IfModule>

# END WordPress

-------------------------------------

April 19, 2011
5:32 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi Kenneth, in what directory did you install your wordpress site? If it's a subdirectory, you might need to adjust these lines so the path points to the new subdirectory:

 

RewriteBase /subdir/

RewriteRule . /subdir/index.php [L]

 

Ovidiu

April 20, 2011
7:07 am
Avatar
Kenneth
Member
Members
Forum Posts: 9
Member Since:
April 19, 2011
sp_UserOfflineSmall Offline

Hi, thanks for your assistance.

 

I have put the Wordpress in the www directory of wamp (C:\wamp\www\sitename)

I have tried both

RewriteBase /wamp/www/sitename
RewriteRule . /wamp/www/sitename/index.php [L]

and

RewriteBase /wamp/www/

RewriteRule . /wamp/www/index.php [L]

as well as

RewriteBase /localhost/

RewriteRule . /localhost/index.php [L]

 

localhost/sitename/ works but localhost/sitename/news does not work

Not Found

The requested URL /sitename/news was not found on this server.

 

The backend is working fine.

localhost/sitename/wp-admin/profile.php

and I can edit the pages I have created previously.

 

You or any one else got any idea?

 

/Kenneth

April 20, 2011
7:23 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

OK, try this then:

 

#RewriteBase /

RewriteRule . index.php [L]

 

this will remove the RewriteBase and also adjust the index.php to a relative current directory path!

 

Ovidiu

April 20, 2011
7:48 am
Avatar
Kenneth
Member
Members
Forum Posts: 9
Member Since:
April 19, 2011
sp_UserOfflineSmall Offline

Thanks again for your help.

 

Unfortunately that did not wotk either.

The backend still works though.

I guess the problem is elsewhere?

April 20, 2011
8:24 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Try and disable then permalinks while the site is on localhost, that should fix the internal urls, you can simply enable them back when moving the site back to the new hosting!

 

Ovidiu

April 20, 2011
1:42 pm
Avatar
Kenneth
Member
Members
Forum Posts: 9
Member Since:
April 19, 2011
sp_UserOfflineSmall Offline

Hmm, mod_rewrite was not enbled by default.

I had to modify httpd.conf in C:wampbinapacheApache2.2.17conf

I did uncomment the line

#LoadModule rewrite_module modules/mod_rewrite.so

 

and together with

 

#RewriteBase /

RewriteRule . index.php [L]

 

it works.

 

Thanks a lot for your support.

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0