Skip to:
Content
Pages
Categories
Search
Top
Bottom

404 page not found

  • Avatar of laura o connor
    laura o connor
    Participant

    @irishartisans

    I have installed wordpress mu and buddypress and I keep getting 404 page not found when I try to follow the links.
    I had the signup working under a normal wordpress theme /wp-signup but now with the new buddypress theme its at /register and an error popped up. I have read up on this and everyone seems to think it has something to do with the .htaccess file. I have contacted my web host and they told me to put in rewrite.script instead of the mod_rewrite. The code I have in the rewrite.script is:

    RULE_0_START:
    match URL into $ with ^/index.php$
    if not matched then goto RULE_0_END
    # Source line 3
    # Second half of: RewriteRule ^/index.php$ – [L]
    # This rule has [L]
    goto END
    RULE_0_END:

    # uploaded files
    RULE_1_START:
    match URL into $ with ^/([_0-9a-zA-Z-]+/)?files/(.+)
    if not matched then goto RULE_1_END
    # Source line 6
    # Second half of: RewriteRule ^/([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    set URL = wp-includes/ms-files.php?file=$2
    # This rule has [L]
    goto END
    RULE_1_END:

    # add a trailing slash to /wp-admin
    RULE_2_START:
    match URL into $ with ^/([_0-9a-zA-Z-]+/)?wp-admin$
    if not matched then goto RULE_2_END
    # Source line 9
    # Second half of: RewriteRule ^/([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    set URL = $1wp-admin/
    # This rule has [R]
    set RESPONSE = 301
    set OUT:Location = %{URL}
    set BODY = Please try here insteadn
    # Implicit [L] when converting
    goto END
    RULE_2_END:

    RULE_3_START:
    match URL into $ with ^/
    if not matched then goto RULE_3_END
    # Source line 11
    # RewriteCond %{REQUEST_FILENAME} -f [OR]
    set SCRATCH:COND = %{REQUEST_FILENAME}
    match SCRATCH:COND into % with -f
    if matched then goto RULE_3_CODE_START
    # Source line 12
    # RewriteCond %{REQUEST_FILENAME} -d
    set SCRATCH:COND = %{REQUEST_FILENAME}
    match SCRATCH:COND into % with -d
    if not matched then goto RULE_3_END
    RULE_3_CODE_START:
    # Source line 13
    # Second half of: RewriteRule ^/ – [L]
    # This rule has [L]
    goto END
    RULE_3_END:

    RULE_4_START:
    match URL into $ with ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
    if not matched then goto RULE_4_END
    # Source line 14
    # Second half of: RewriteRule ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    set URL = $2
    # This rule has [L]
    goto END
    RULE_4_END:

    RULE_5_START:
    match URL into $ with ^/([_0-9a-zA-Z-]+/)?(.*.php)$
    if not matched then goto RULE_5_END
    # Source line 15
    # Second half of: RewriteRule ^/([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    set URL = $2
    # This rule has [L]
    goto END
    RULE_5_END:

    RULE_6_START:
    match URL into $ with .
    if not matched then goto RULE_6_END
    # Source line 16
    # Second half of: RewriteRule . index.php [L]
    set URL = index.php
    # This rule has [L]
    goto END
    RULE_6_END:

    Is there something wrong with this or is there another possible reason my links arent working?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    @irishartisans – I’ve never known anyone use rewrite.script. Mod_rewrite.c is the norm for WP / BP

    I suggest going back to the original .htaccess file, then de-activate BuddyPress, and then run the following tests:

    Do custom permalinks work (e.g. change them to /%category%/%postname%/ in your wp-admin), can you comment, can you register new sites, and so on.

    Does all this work without problem? If not, check you have correct permissions set on your .htaccess file

    Avatar of laura o connor
    laura o connor
    Participant

    @irishartisans

    I am using a web host so I do not have access to my .htaccess file is there another way of checking this?

    Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    @irishartisans – where did you remove the mod_rewrite.c directives / add the rewrite.script directives? Wasn’t that in your .htaccess file?

    Most web hosting will allow you access to your .htaccess file. Which hosting company are you using?

    Unfortunately, I don’t know anything about rewrite.script so can’t help further on that.

    Do the steps I suggested though, and check whether your basic WP installation is working properly first.

    Avatar of laura o connor
    laura o connor
    Participant

    @irishartisans

    Ok I will try that
    Thank you for your help!

    Avatar of laura o connor
    laura o connor
    Participant

    @irishartisans

    Still no joy, has anyone experienced this problem where they don’t have access to the .htaccess file. I have been told to convert the apache mod_rewrite to zeus and put the code in a file called rewrite.script but it doesn’t seem to want to work

    Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    @irishartisans – did you get the custom permalinks working on your basic WordPress install with BuddyPress de-activated?

    You’ll need that before you attempt to use BuddyPress.

    Does this article help: http://www.benhuson.co.uk/2010/03/01/wordpress-permalinks-zeus-server/

    Avatar of gravelhunter
    gravelhunter
    Member

    @gravelhunter

    try this out. it worked for me

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.