The MU forums have moved to WordPress.org

I think something is wrong with my apache settings or .htaccess file (9 posts)

  1. dustinmcgrew
    Member
    Posted 14 years ago #

    I'm trying to access a new blog on my WPMU installation but when I try to view the frontend or backend I just get an unstyled page that has the default WP content. When I click links on that page the url changes but it does not take me to the page.. it just stays on that unstyled page.

    My default blog (is that what you call it?) works just fine except for some image uploading problems that I think may be related to the issue I'm having viewing the 2nd blog I have set up.

    I currently have my blog set up in the subfolder format... http://www.example.com/blog1, http://www.example.com/blog2

    Anyone have any ideas?

  2. andrea_r
    Moderator
    Posted 14 years ago #

    What kind of server are you on?
    Is mod_rwrite enabled?
    Is apache actually reading the htaccess file? (I'm guessing not.)

  3. dustinmcgrew
    Member
    Posted 14 years ago #

    I'm just running it on Mac OS X Leopard. Where can I check to see that mod_rewrite is enabled? I'm sure that apache is reading the htaccess file. When I erase everything in my htaccess file I get a 403 error on my WPMU and my Joomla installs.

  4. SteveAtty
    Member
    Posted 14 years ago #

    deleting one .htaccess file breaks your WPMU AND your Joomla installs? Have you got them installed in the same directory?

  5. dustinmcgrew
    Member
    Posted 14 years ago #

    Sorry.. I meant when I erase everything on my .conf file.. obviously that would screw things up.. duh! Ignore what I said there lol.

  6. tim.moore
    Member
    Posted 14 years ago #

    To check that mod_rewrite is enabled, edit the file /etc/apache2/users/your-username.conf. Then check that the AllowOverride line is set to AllowOverride FileInfo Options

  7. dustinmcgrew
    Member
    Posted 14 years ago #

    Current I have it set to AllowOverride All. When I change it to FileInfo Options I get a 500 error. Ugh. Here are my .conf and.htaccess files.

    .conf...

    <Directory "/Users/designer1/Sites">
    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    .htaccess (this is borrowed from a Drupal install.. but it works for some reason)

    #
    # Apache/PHP/Drupal settings:
    #

    # Protect files and directories from prying eyes.
    <Files ~ "(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
    Order deny,allow
    Deny from all
    </Files>

    # Set some options.
    Options -Indexes
    Options +FollowSymLinks

    # Customized error messages.
    ErrorDocument 404 /index.php

    # Set the default handler.
    DirectoryIndex index.php

    # Override PHP settings. More exist in sites/default/settings.php, but
    # the following cannot be changed at runtime. The first IfModule is
    # for Apache 1.3, the second for Apache 2.
    <IfModule mod_php4.c>
    php_value magic_quotes_gpc 0
    php_value register_globals 0
    php_value session.auto_start 0
    </IfModule>

    <IfModule sapi_apache2.c>
    php_value magic_quotes_gpc 0
    php_value register_globals 0
    php_value session.auto_start 0
    </IfModule>

    # Reduce the time dynamically generated pages are cache-able.
    <IfModule mod_expires.c>
    ExpiresByType text/html A1
    </IfModule>

    # Various rewrite rules.
    <IfModule mod_rewrite.c>
    RewriteEngine on

    # Modify the RewriteBase if you are using Drupal in a subdirectory and
    # the rewrite rules are not working properly.
    RewriteBase /~designer1/WordPressMU

    # Rewrite old-style URLs of the form 'node.php?id=x'.
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond %{QUERY_STRING} ^id=([^&]+)$
    #RewriteRule node.php index.php?q=node/view/%1 [L]

    # Rewrite old-style URLs of the form 'module.php?mod=x'.
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
    #RewriteRule module.php index.php?q=%1 [L]

    # Rewrite current-style URLs of the form 'index.php?q=x'.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    </IfModule>

    # $Id: .htaccess,v 1.66 2005-03-20 19:15:00 dries Exp $

  8. SteveAtty
    Member
    Posted 14 years ago #

    But why are you showing us the .htaccess with drupal rules in it? Where are the WPMU rewrite rules?

  9. andrea_r
    Moderator
    Posted 14 years ago #

    WPMU generates its own htaccess on installation. If it didn't use htaccess.dist, rename, and set the BASE line to "/" (assuming you're in the root).

    And you do realize the lines in the above htaccess with the # in front don't get run?

About this Topic

  • Started 14 years ago by dustinmcgrew
  • Latest reply from andrea_r