The MU forums have moved to WordPress.org

Something is wrong with my htaccess file (15 posts)

  1. multitalentedmommy
    Member
    Posted 15 years ago #

    Cause: I moved all the wpmu files to new server. Started with empty database. Import through sql. Had big problems with htaccess and wp-config. because I don't know what I'm doing. So:

    - emptied the database
    - ran the install script to create the config file and htaccess
    - imported sql

    um - problems!

    __________________________________
    htaccess
    RewriteEngine On
    RewriteBase /

    #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>

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

    Can someone tell me what to change please??

  2. Ovidiu
    Member
    Posted 15 years ago #

    um - problems! what problems? looks ok, but what is the problem? link to the live site? domain name remained the same, just moved servers? DNS has propagated already?

  3. seahawknationblog
    Member
    Posted 15 years ago #

    I dont see anything wrong with your htaccess file?

    RewriteEngine On
    RewriteBase /

    #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>

  4. multitalentedmommy
    Member
    Posted 15 years ago #

    duh - sorry bout that! The error is that the subdomains aren't showing up. beth.shrinkingjeans.net isn't there - getting a "Firefox cannot findthe server at beth.shrinkingjeans.net" the DNS propogation began yesterday afternoon. Should be good ENUF for me to work on it.

  5. VentureMaker
    Member
    Posted 15 years ago #

    did you set up wildcard DNS for shrinkingjeans.net?

  6. multitalentedmommy
    Member
    Posted 15 years ago #

    huh? I hate being this uninformed... I'll look up whatever you're talking about! Thanks forthe direction. VERY MUCh.

  7. VentureMaker
    Member
    Posted 15 years ago #

    http://trac.mu.wordpress.org/browser/trunk/README.txt

    Well, a readme included in WPMU package is the first thing to read through :)

    Check the above link, pay attention to Apache and DNS sections.

  8. multitalentedmommy
    Member
    Posted 15 years ago #

    whoa! Isn't that extremely outdated? I got in trouble following that thing to begin with! I figured out the installation here on the boards.

  9. VentureMaker
    Member
    Posted 15 years ago #

    Well, then look for wildcard DNS here as well :)
    This really depends much on the hoster and CP you're using.

  10. andrea_r
    Moderator
    Posted 15 years ago #

    Outdated? No, you still need all the same stuff.

  11. multitalentedmommy
    Member
    Posted 15 years ago #

    thank you all SO much for your help! I have the php stuff and dns zone stuff all figured out... but the apache? Where the hell is the httpd.conf? Is that the htaccess file?

    - yes I can see hidden files, and yeah, I'm using cpanel/whm. Is it the php.ini? (That seems like it would be php, not apache...)

  12. andrea_r
    Moderator
    Posted 15 years ago #

    "but the apache? Where the hell is the httpd.conf? Is that the htaccess file?"

    Nope, it's outside the public_html folder, and you access it via ssh.

    Best bet is to ask the webhost to "enable wildcard subdomains for this domain".

  13. multitalentedmommy
    Member
    Posted 15 years ago #

    I did use their auto set up first- it is set up just like its supposed to be in the dns zone. But every single address that I try to go to is now automatically directed to: *.shrinkingjeans.net/ and there's nothing there.

    This is why I thought it was an htaccess problem. I do have ssh access, but I'm afraid of screwing something up... what to I do to correct the wildcard redirect?

    using cpanel/ whm
    and wildcard subdomains seem to be working, in the subdomain panel is has this record:
    *.domain.tld -> not redirected.

    I do'nt know what's wrong.

  14. andrea_r
    Moderator
    Posted 15 years ago #

    Right, but it's two spot to add the wildcard. One is the wildcard in the DNS records, the other is the wildcard in the apache records. They *both* have to be done for the subdomains to work.

    ever edit the httpd.conf file before? :D

  15. Ovidiu
    Member
    Posted 15 years ago #

    apache used httpd.conf apache2 uses apache.conf if I remember correctly. apache2 is backwards compatible with a httpd.conf but all this depends on what os you are using :-)

About this Topic

  • Started 15 years ago by multitalentedmommy
  • Latest reply from Ovidiu