Forums

[resolved] .htaccess issue (11 posts)

  1. badcredit
    Member
    Posted 2 years ago #

    Hi, I’m editing the link structure of my word press blog because every time I make a post I want the keywords from the title to appear within the url. So, I added this code within the custom url structure: Link url format: /%postname%.html

    However, it keeps saying to update .htaccess now. The only issue is that the .htaccess file is not there on my server. So, should I make a file and upload it to my server, and if so what should I name the extension for it? For example, .html, php, or just leave it blank? Also, what should I update the .httacess file to as well? Thanks in advance.

  2. shadow
    Moderator
    Posted 2 years ago #

    It can be am empty text file simply saved as .htaccess [[nothing else needed]

    You will also need to give it 777 permissions when you make changes to it and then change them back to 644 when completed.

    You may need to configure your FTP client to see it though,
    often -al

  3. badcredit
    Member
    Posted 2 years ago #

    Thanks. Ok, so i uploaded it as an text file and then copy and pasted the code that wordpress gave to me but it still said that i need to update my .htacess file. Which part of it should i edit, and what exactly do i need to make it editable? The number 666? Thanks.

  4. moshu
    Member
    Posted 2 years ago #

    You either set the permissions (chmod) to 666 - making the file writable and then WP will write the rules into it...
    or you can put the given code into the file and upload it again.

  5. castus
    Member
    Posted 2 years ago #

    Your server isn't a windows server is it?

  6. badcredit
    Member
    Posted 2 years ago #

    No, im running on Linux. I edited the .htaccess file so that it was 666, but still no luck, strange. Do i have to make changes to the code that wordpress gave me?

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

    Thanks.

  7. moshu
    Member
    Posted 2 years ago #

    No, don't change anything.

  8. badcredit
    Member
    Posted 2 years ago #

    Err, its not working though, this is strange, any suggestions?

  9. badcredit
    Member
    Posted 2 years ago #

    Is anyone else having a similar promblem. >htaccess filed was added, the file was updated to 666, ,htaccess file updated and still not luck.

  10. badcredit
    Member
    Posted 2 years ago #

    Mistake found. File name was .htaccess.txt, should of just been .htaccess.

  11. MManciniTN
    Member
    Posted 1 year ago #

    My .htaccess is correctly names and I am still having a problem. All my links and permalinks and comments all go to the homepage. Does any one have any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic