WordPress.org

Ready to get started?Download WordPress

Forums

I have 2 .htacess files...I want pretty permalinks...help! (8 posts)

  1. jcc11
    Member
    Posted 2 years ago #

    I found out that I DO already have an .htaccess file...in fact I have TWO! (some company made the website for us). They are located in the cPanel

    /home/journey/public_html/wp-content/.htaccess

    /home/journey/public_html/.htaccess

    The top one has a lot of info in it and the second is blank. When i want to change my permalinks it says to copy this to my htaccess:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Which one do I copy it to? Do I delete the old info? I'm really just trying to make my permalinks pretty. Any help would be appreciated.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Amend this one:
    /home/journey/public_html/.htaccess

  3. jcc11
    Member
    Posted 2 years ago #

    Thanks!

  4. jcc11
    Member
    Posted 2 years ago #

    Do I delete the old info in the htaccess file or just paste the new stuff on the top? :)

  5. jcc11
    Member
    Posted 2 years ago #

    help?

  6. rhender
    Member
    Posted 2 years ago #

    I would just add it to the top if it were me, but I'm not positive on that. Just thought I would respond since you were getting lost in the posts. I know the feeling. :)

    But yes, I would think you could just paste it to the top of that file that Esmi recommended you edit.

    Maybe try that and then see what happens.

  7. MickeyRoush
    Member
    Posted 2 years ago #

    jcc11 wrote:

    Do I delete the old info in the htaccess file or just paste the new stuff on the top?

    These rules:

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

    Need to be in this .htaccess file.
    /home/journey/public_html/.htaccess

    For WordPress permalinks to work correctly.

    jcc11 wrote:

    The top one has a lot of info in it and the second is blank.

    Assuming this the second one, you can paste it in or create a new one with the code. Same difference.

  8. jcc11
    Member
    Posted 2 years ago #

    Just following up...in case anyone ever has the same problem. Watch this video
    http://www.youtube.com/watch?v=RnmGnLW3qho
    It helped so much. I wasn't changing the permissions in the .htaccess file that's the only reason nothing was working! Thanks for all the help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.