• Resolved ameljor322

    (@ameljor322)


    Hi,
    After heaps of trouble with my theme showing an internal error, I finally got my original theme back in working order and now, have this permalinks problem.
    It was set to ‘post name’ and I noticed there was, if your .htaccess were writable and then this;
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    I have searched for possible solution but have found nothing to help me. I just don’t understand when this happened, and maybe it was the reason I had the internal server problem going on.
    Since installing this new theme, I hadn’t checked my permalinks. At the moment they are set to default as this is the only way I can get everything working.
    thanking you in advance. ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator James Huff

    (@macmanx)

    What you’re seeing are instructions on what to add to your .htaccess file in order to get permalinks working again.

    WordPress can’t access your .htaccess file, so you’ll need to access your server via FTP https://codex.www.ads-software.com/FTP_Clients open the .htaccess file (you may need to set your FTP client to show invisible files) in either the FTP client’s text editor or one of these https://codex.www.ads-software.com/Editing_Files#Using_Text_Editors and add the following:

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

    If you can’t find a file called .htaccess even with invisible files showing, you’ll need to create a file named .htaccess with the above content using a text editor.

    Thread Starter ameljor322

    (@ameljor322)

    Hi, I can see a file called .htaccess_old, I am not sure why it has old after it.

    I have some understanding of what to do.

    I can save the above code to a text editor, not sure what to do next, what do I save the text editor as, and do I just drag it from the desktop into the .htaccess.old?

    thankyou

    Moderator James Huff

    (@macmanx)

    Try editing .htaccess_old, you’ll probably need to replace a similar looking section, then rename it to just .htaccess (remove the “_old”).

    Thread Starter ameljor322

    (@ameljor322)

    Thanks for reply James, but I have no idea how to edit the existing .htaccess_old, and I don’t know what you mean by ‘replace a similar looking section’
    I am not tech savvy, just a beginner still learning……
    ??

    Moderator James Huff

    (@macmanx)

    Ok, no problem, let’s start step by step. ??

    1. Are you using an FTP client? https://codex.www.ads-software.com/FTP_Clients

    2. If so, which one?

    3. Does your FTP client have a built-in text editor?

    4. If no, which text editor are you using? https://codex.www.ads-software.com/Editing_Files#Using_Text_Editors

    Thread Starter ameljor322

    (@ameljor322)

    Hi, I just wanted to let you know that I went into the .htaccess_old and there is heaps of info in there, so I just added the code to the end of it and saved. Anyway, it didn’t work.

    Moderator James Huff

    (@macmanx)

    Did you re-name it to just .htaccess (remove the _old)?

    If so, and that didn’t work, what directory is this file located in? Is wp-config.php in the same directory?

    Also, would you please paste the contents of the file here in a reply, and reply to the 4 questions earlier?

    Thread Starter ameljor322

    (@ameljor322)

    Oh my god thank you , it worked, I didn’t rename the file and just did it again and renamed it and it worked!! Thank you so much James. ??

    Moderator James Huff

    (@macmanx)

    You’re welcome! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘permalinks not .htaccess writable’ is closed to new replies.