Support » Fixing WordPress » Permalinks, .htaccess, and error 500

  • Hopefully I can get some help with this.

    I just installed WordPress, and I’m trying to set up permalinks to just be /archives/postname. My first step was to just choose one of the “common settings” so I chose month and name ( It said that because WordPress couldn’t write to my .htaccess file I would need to manually change it. I logged into the cpanel of my host, and there wasn’t an .htaccess file already created. So I followed the instructions on, made a blank 1.htaccess file, uploaded it, then changed it to .htaccess from my cpanel.

    After doing so, my entire site went error 500 – including the WordPress admin area. According to the “using permalinks” page, if I get an error 500 I should delete the .htaccess file…so if I do that, the site works, but I can’t change my permalinks. Any help would be greatly appreciated.

Viewing 15 replies - 1 through 15 (of 16 total)
  • create the .htaccess again and leave it blank (use notepad)
    chmod to 666
    go to dashboard
    settings – permalinks
    set to desired
    will work now

    acceptable permalinks structures

    Hey, thanks for the advice…still having a problem unfortunately. I created a blank .htaccess file, uploaded it, chmod it to 666…and I get an error 500 when I go to my WordPress admin panel.

    Update: I figured out (I think) that I had just been putting the .htaccess file in the wrong folder. So that’s corrected now, and I no longer get error 500. But now, when I log in to the WordPress admin panel and change the permalinks structure, I get an error 404 when I try to go to any page other than the index. For example, I set up an about page, and on the edit page for that I set the permalink to /about. Under my permalinks settings I have it set to month and post name, and on the edit page for the pages I’ve created it lets me change the permalink for it…but it still resolves to a 404 when I try to visit any of the pages I’ve made. Ack!

    hey ctullis i’m trying to do the same thing as you… what folder did u end up sticking it in? and did u ever resolve this?

    “666” would be the wrong persmissions setting to make the file writeable (as designated by your host). Some hosts *will* allow 666 to work, but many force you to use 777 or 766.

    Your safest bet would be to just copy the code that’s spit out and paste it into your .htaccess file and upload it.

    thanks for the response.

    i’m having trouble locating the .htaccess file. i’ve gone through all the files on the server and i havnt been able to locate it anywhere. should there be one?

    i’m on a mac. could this lead to a hidden file since it begins with a . ?

    otherwise, i was reading through some other wordpress user questions on the forum and it was suggested to create your own.
    where do i stick it in that case?

    thanks again

    okay so i found the .htaccess file… it was hidden, but i changed up some settings and found it.

    this is what i’m trying to do: i’m trying to make pretty permalinks. this note came up under the permalinks settings.

    If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.

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

    i opened the .htaccess file up using TextWrangler and was planning on inserting the code in there, but it already had that.
    any ideas? do i need to change the file permissions?

    I’m having similar problems. I created a new .htaccess, since there wasn’t one and put the text in it. I’m getting Error 404 Not found. I think the problem may be due to my permalink setting. When I enter, in the Custom Structure text box, it changes to /http:/ In other words, the second slash moves to the front. Weird. What’s happening?

    i dont think that’s what u r suppose to enter in the custom field.

    u can read more here …well that’s what i was able to understand from it.

    i think my problem is the file permission… cause it keeps saying operation not permitted.

    OK, I got it, just /year, etc. That worked, but I’m still getting Page not found. I’m going to start a new thread.

    it was the permission code. i had my host change .htaccess permission code

    Glad you got it sorted, Michael.

    Ellen, you don’t use /year, you use %year%. There’s code below each setting to tell you how to use the pretty permalinks settings.

    when you mention htaccess permission code change — is this permission meant for updating.htaccess file or is it required so that wordpress can work correctly ?

    You just need to change the permission to update .htaccess and can/should change it back afterwards.

    Moderator Mark Ratledge


    Forum Moderator

    Change the permissions to 666 or higher to save changes to an .htaccess file, but then change them back to 444 to prevent making inadverdant changes to the file and to prevent others from making changes. But 444 allows “everyone” to read the file, including WP.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Permalinks, .htaccess, and error 500’ is closed to new replies.