WordPress.org

Ready to get started?Download WordPress

Forums

Permalink / .htaccess - Internal 500 (16 posts)

  1. matius
    Member
    Posted 9 years ago #

    Hi:
    I generated the permalink code in Options -> Permalink, then created a .htaccess file and uploaded it to my server.
    WP is not my main directory, I uploaded .htaccess to mydomain.com/current/...
    1. Is this the right directory to upload?
    2. What step would I be missing if .htaccess is all you need? Do I need to flip on mod rewrite somehow?
    Thanks

  2. DianeV
    Member
    Posted 9 years ago #

    Try uploading it to your main directory, rather than current/

  3. matius
    Member
    Posted 9 years ago #

    Ok, I didn't know if I could do that since WP is in the 'current' directory...

  4. TechGnome
    Moderator
    Posted 9 years ago #

    matius - whoah! Slow down there pilgrim. Don't go creating the directory structure. Using permalinks & the mod rewrite with .htaccess creates virtual directories. Meaning the folders don't actualy exist. One thing to be sure is that your .htaccess file was uploaded as ascii/text and not binary (I've run into that problem once or twice). And DianeV is right, it should be in the root folder. It doesn't matter where WP is after that since WP doesn't actualy ever read that file. It's used as a translator to change the URL from what you see in the browser into something that WP can actualy use.
    Tg

  5. matius
    Member
    Posted 9 years ago #

    Damn, so do I need to completely re-install now? I moved the .htaccess permalink structure code to the root folder and all of my original posts are screwed.

    Anyway to help this out?

  6. matius
    Member
    Posted 9 years ago #

    By the way, it seems to matter because I keep getting an Internal 500 Error when in this code is in the root folder.

  7. .htaccess works only for the directory in which it is placed. Therefore, .htaccess needs to be in the directory where all of the wordpress files are.

  8. matius
    Member
    Posted 9 years ago #

    macmanx, that's how it worked, but the posts above made me think that was incorrect...

    Should it matter that the WordPress files are in a folder called 'current'. I put .htaccess in that directory.

  9. matius
    Member
    Posted 9 years ago #

    macmanx, that's how it worked, but the posts above made me think that was incorrect...

    Should it matter that the WordPress files are in a folder called 'current'. I put .htaccess in that directory.

  10. matius
    Member
    Posted 9 years ago #

    macmanx, that's how it worked, but the posts above made me think that was incorrect...

    Should it matter that the WordPress files are in a folder called 'current'. I put .htaccess in that directory.

  11. matius
    Member
    Posted 9 years ago #

    macmanx, that's how it worked, but the posts above made me think that was incorrect...

    Should it matter that the WordPress files are in a folder called 'current'. I put .htaccess in that directory.

  12. matius
    Member
    Posted 9 years ago #

    Sorry for the reposts- bloody Avant

  13. CraniumOxide
    Member
    Posted 9 years ago #

    I've been getting this same error all week while trying to configure this in my .htaccess file.

    I finally tried making my .htaccess file writable (chmod) and pasting it via the WP control panel and it worked perfectly. Something about line wraps was screwing things up while editing the file via my FTP program (which sounds like the same thing TechGnome was talking about, above).

  14. matius
    Member
    Posted 9 years ago #

    Thanks for your response, but I still get an Internal Server Error- even when .htaccess is in the right spot.

  15. Yes, your blog files are fine in /current/. And, if your blog files are in /current/, your .htaccess file should also be in /current/.

  16. DianeV
    Member
    Posted 9 years ago #

    I am pleased to find this thread, having had a bit of a problem with .htaccess.

    One of the things to check, if you get an error with .htaccess, is whether mod_rewrite is enabled on your server.

    You can also check your log files.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.