Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   WAMP local server giving 404s for pages (http://forum.bytesforall.com/showthread.php?t=3761)

StudioGal Oct 7, 2009 09:17 AM

WAMP local server giving 404s for pages
 
Hi, I'm using WAMP to develop a client website on my computer before I go live with it.

I've set the server up correctly and have no trouble getting the dashboard and my changes to the Atahualpa settings to work.

I'm using a static page for the home page, and am using pages rather than posts for the rest of the site.

However, when I click on the page links (other than the home page), I'm getting 404 errors. Any idea what's going wrong here?

Thanks!

juggledad Oct 7, 2009 10:17 AM

what have you got your permalinks set to? if other than default, try switching back to default.
Also try it with the default theme

StudioGal Oct 7, 2009 10:36 AM

I followed the procedure in the Codex at

http://codex.wordpress.org/Creating_a_Static_Front_Page

so in step 3, I set the permalinks to /%pagetitle%

though I admit to totally guessing what that tag should be since I can't find any reference to it! (You'd think they'd tell you on that page, right?)

So do you still recommend I go back to the default settings? I don't want to mess up the static pages.

Thanks!

juggledad Oct 7, 2009 01:34 PM

go back to dashboard->settings->permalinks->Common Settings and select "Default' and try it that way.

StudioGal Oct 7, 2009 01:49 PM

Yes, that got the pages to come up. Thanks.

However, the default setting for permalinks isn't so good for SEO purposes. Any chance we can get around that?

Another thing that I don't "get" is that the page "name" comes up as the title (H1) on the page - which also looks odd. But I do want a title on the page, just not the name of the page.

Really appreciate your help! THANKS.

juggledad Oct 7, 2009 02:13 PM

try creating an htaccess file

StudioGal Oct 7, 2009 02:41 PM

Okay, I just created an empty .htaccess file.

What should I do next?

juggledad Oct 7, 2009 06:16 PM

on my MAMP server I have the htaccess file in the wordpress directory - it should be wrtiabel so wordpress can change it when you change the permalinks. Below is what I have in mine - this is copied from the web I do not know HTACCESS so I can't explain it all to you - check the web for that info

I run on a mac so the '/~userid/yoursite/index.php' is pointing to the folder 'yoursite' that is in the 'sites' folder of my user 'userid' (it's actually not 'userid', it is myname)

here is the htaccess file
HTML Code:

# ==========================================================
# protect the htaccess file
# ==========================================================
<files .htaccess>
order allow,deny
deny from all
</files>

# ==========================================================
# disable the server signature
# ==========================================================
ServerSignature Off
# limit file uploads to 10mb
LimitRequestBody 10240000

# ==========================================================
# protect wpconfig.php
# ==========================================================
<files wp-config.php>
order allow,deny
deny from all
</files>

# ==========================================================
# who has access who doesnt
# ==========================================================
order allow,deny
#deny from 000.000.000.000
allow from all

# ==========================================================
# custom error docs
# ==========================================================
ErrorDocument 404 /notfound.php
ErrorDocument 403 /forbidden.php
ErrorDocument 500 /error.php

# ==========================================================
# disable directory browsing
# ==========================================================
Options All -Indexes
#redirect old to new
Redirect 301 /old.php http://www.yourdomain.com/new.php

# ==========================================================
# block referring domains
# ==========================================================
RewriteEngine on
RewriteCond %{HTTP_REFERER} digg\.com [NC]
RewriteRule .* - [F]

# ==========================================================
# disable hotlinking of images with forbidden or custom image option
# ==========================================================
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite.org/.*$ [NC]
#RewriteRule \.(gif|jpg)$ - [F]
#RewriteRule \.(gif|jpg)$ http://www.yoursite.org/stealingisbad.gif [R,L]

# ==========================================================
# php compression - use with caution
# ==========================================================
#<ifmodule mod_php4.c>
#php_value zlib.output_compression 16386
#</ifmodule>

# ==========================================================
# set the canonical url
# ==========================================================
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite\.org$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.org/$1 [R=301,L]
# protect from spam comments
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yoursite.org.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~userid/yoursite/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .  [L]
</IfModule>

# END WordPress


StudioGal Oct 7, 2009 06:38 PM

YIKES - that's pretty scary! ;-)

I'll have a look at this in the morning and see if I can make any sense of it - I TRULY appreciate your reply and I will be back ...

Cheers and best.


All times are GMT -6. The time now is 08:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.