Skip to:
Content
Pages
Categories
Search
Top
Bottom

404.php redirect isn’t working!


  • Ezd
    Participant

    @ezd

    Hi,

    Im running BP. 1.0, WPMU 2.7.1.

    My 404.php isnt working in BuddyPress. When I insert a bad url it does not redirect the url to the 404.php page.

    If im on the home theme and I enter a bad url it redirects to the member page.

    If im on a member theme (like wire) and I enter a bad url it redirects to ‘Profile’.

    I have a feeling there’s something wrong with either the htaccess or wp-config file. But the problem could be elsewhere? Anyone has a solution for this?? Thanks!

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

  • Jeff Sayre
    Participant

    @jeffsayre

    Ezd-

    Are you using the .htaccess file that comes with WPMU?

    Have you placed that in WPMU’s root?


    Ezd
    Participant

    @ezd

    Hi Jeff,

    I tried replacing the original .htaccess file with the one that comes with WPMU. It didnt change anything through.

    Here’s what it looks like now (My website/BP is currently located in a subdirectory under designs/website/:

    RewriteEngine On
    RewriteBase /designs/website/

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404.php redirect isn’t working!’ is closed to new replies.
Skip to toolbar