• urbanscout

    (@urbanscout)


    I wanted to change my permalinks to be just the postname. Every time I change it to that, none of my links work. I created an .htaccess file with the code wordpress told me:

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

    I created an .htaccess file and tried putting it both in urbanscout.org/.htaccess and urbanscout.org/wordpress/.htaccess.

    I changed the permissions of the .htaccess to be able to 666 as they said.

    When I have the file in urbanscout.org/.htaccess my site does not work. Even when I have a blank file called .htaccess in this folder, the site says, “Server error.”

    When I have the file in urbanscout.org/wordpress/.htaccess, the main page loads, but when I click on a blog to read it, I get a 404 not found page.

    I thought it might be because I changed it to only the postname and it said you may have trouble doing that, but I changed it to several other options and none of them worked. I don’t understand why my wordpress options told me that it could not access my .htaccess file even after I changed the permissions.

    According to my host GoDaddy, I have Apache, so the mod_rewrite should work:
    https://help.godaddy.com/article.php?article_id=898&topic_id=

    I read through the wordpress site:
    https://codex.www.ads-software.com/Using_Permalinks

    As suggested in the permalinks page here, and a few other places, I tried changing my wp-includes/vars.php file to:

    $is_apache = 1;

    and my site would not load, saying that there was an error on file wp-includes/vars.php line 37.

    AAAAHHH! Please help me.

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter urbanscout

    (@urbanscout)

    Even though when I click Update Permalinks, and it says, “Permalinks Updated” the links still don’t work. it doesn’t even tell me to update my .htaccess files anymore. What does that mean?

    moshu

    (@moshu)

    They should both look like:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>
    
    # END WordPress

    Thread Starter urbanscout

    (@urbanscout)

    It looks like wordpress has created an .htaccess file in the root directory, but not the wordpress directory. Yet when I create an .htaccess file, blank or with the same code as the other, the site reverts to text only and the links still don’t work.

    moshu

    (@moshu)

    Post less and read more…

    Thread Starter urbanscout

    (@urbanscout)

    It automatically created this one in the root:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I changed it to your mark up with “wordpress” in the appropriate places, and created the same one for the directory folder as well. The site still reverts to text only when I put in your code to the .htaccess file in the WP directory. And the links still don’t work.

    …and the site now has a 500 internal server error again…

    post less read more…

    Haha. I’m trying. I’ve been at this for over 12 hours now and still no luck. I am not computer savvy, but it looks like even the savvy ones are having a hard time with this one. I really appreciate your help. You’re the first person actually helping me figure it out.

    moshu

    (@moshu)

    What I posted I copied from a site where I set up WP exactly like your instllation:
    showing blog at the root
    having it installed in a directory called “wordpress”

    True, it is on a real host, not godaddy. (Everybody should do one thing well: they are great for registering domains but they are not so great as hosting company)

    Thread Starter urbanscout

    (@urbanscout)

    Um… I have no idea what I did, but it works.

    I have only one .htaccess file, and it’s in the root.

    I think the key was you having me copy the index.php into the WP directory.

    Than I deleted all the .htaccess files and changed everything back to normal in the permalinks. This must have created a default .htaccess file, which I was than able to change to /%postname%/ and bam!

    All that screwing around with the .htaccess must have messed it up. Now I just hope my site doesn’t crash after 20 minutes…

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Permalink cluster*#$@’ is closed to new replies.