Forum Replies Created

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter Jacob311

    (@jacob311)

    I thought maybe mod_rewrite was disabled, so I tested it with this script:

    <?php
     if( ! function_exists('apache_get_modules') ){ phpinfo(); die; }
     $result = ' not available';
     if(in_array('mod_rewrite',apache_get_modules())) $result = ' 
    
    available';
    
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    
    "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    <head>
    <title>Check for mod_rewrite</title></head>
    <body>
    <p><?php echo apache_get_version(),"</p><p>mod_rewrite $result"; ?></p>
    </body>
    </html>

    And it returned this:

    Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8r DAV/2 PHP/5.3.6

    mod_rewrite available

    Just so you know. I’m trying to give you as much information as I can to be helpful. Let me know if my constant posts of “Oh, also…” are inadequate or unhelpful. Is “unhelpful” a word? It is now.

    Thread Starter Jacob311

    (@jacob311)

    Ok, I started a fresh install at /newtest4/, changed the permalink settings to the Post-Name (https://dsnamerica.com/newtest4/sample-post/), added this to the .htaccess file (which I had to make):

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /newtest4/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /newtest4/index.php [L]
    </IfModule>

    I made two posts after that and they show on the home page at dsnamerica.com/newtest4/ but if you click on a post to view it it goes to a 404 error. If I change the permalinks back to default it works just fine. I want the pretty permalinks. What do you think I did wrong?

    Thread Starter Jacob311

    (@jacob311)

    Ok thank you for the information. I will try a fresh install at /newtest4/ and let you know how it goes. While the files are transferring, can you tell me at what point in the process I should chmod the .htaccess file so that it’s writable? I wondered if I was doing that too late in the process before.

    On that same note, what folder or file should be writable for WordPress to be able to generate the .htaccess file on its own without me having to create it and FTP it to its required location?

    I’ll let you know how it goes… Thank you for the fast response.

    Thread Starter Jacob311

    (@jacob311)

    Also, a trick I found to make pretty permalinks work in a multisite that was otherwise not supporting pretty links, was to add index.php before whatever you want the permalinks to be.

    Because mine is set this way I thought I’d let you know in case it is what is messing with the new sites…I doubt it but I want you to have all the info. So my network permalink setting is as follows:
    index.php/%postname%/

    I am having problems with 404 errors on new sites as well. I don’t mean to get your hopes up that there’s a response to your question, but I wanted to be notified if someone answers your question.

    I assume most of our 404 problems can be traced back to something in the .htaccess file. Why do so many of us have this same problem?…Hopefully an update in the future will make this set up a bit easier.

    Good luck on yours.

    Thread Starter Jacob311

    (@jacob311)

    Also, I just read this:

    You really do need mod_rewrite working and reading your .htaccess file. It is used in both types of sites. A good test is if pretty permalinks work.

    I can tell you also that permalinks give me all kinds of grief! Yesterday I fought off 403 Forbidden Access errors all day. I want to be able to have “pretty permalinks” so at what point in the process do I set that up?

    How do I test to see if mod_rewrite is working?

Viewing 6 replies - 16 through 21 (of 21 total)