• Resolved terranovaj

    (@terranovaj)


    OK, So I am trying to update my permalink structure and it comes up with an error saying it can’t write to my .htaccess file and I need to update it. Well, I have no .htaccess file, and I even made my hidden files viewable…as it turns out I have NO hidden files at all. I have used cyberduck and filezilla just to make sure it was not a program issue. I created a .htaccess file in textedit and uploaded it into the blog directory but that just ended up breaking my site and my back end as well, so I have deleted the file and all is well again.

    The thing is I really want to change my permalink structure and there is apparently no way to do it without a .htaccess file. Any thoughts or suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hmm…

    – in the past I’ve seen a web host take as long as 15 minutes to take into account a change in an htaccess file, as if their server was “caching” the contents of an htaccess and wouldn’t take into account at once every change I tried – infuriating and requesting lots of patience between attempts

    – if it can help, here is the default .htaccess file contents for any wordpress blog :

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

    – it may be better to create your file on your hard disk as htaccess.txt, upload it as a text file, and only on your server, by FTP, rename it as .htaccess (dropping the .txt ending, and inserting the initial dot)

    – security : if your blog’s file are under “username” account, don’t try uploading files under the “root”‘s account, upload them under the “username” account

    – just in case : upload your htaccess, go to the admin tab about permalinks and do save them (again if needed) under the default structure, and only then, try saving with pretty permalinks structure

    Hoping one of these may help 🙂

    Thread Starter terranovaj

    (@terranovaj)

    Sabinou-

    Thank you for your help, I figured out what the problem was. My txtedit was set to make all new files RTF, and even when I lost the extension it was still preserving the RTF formatting embedded in the file. So after I fixed that, and made a totally txt file, I just uploaded it to the root directory and BAM, everything is pretty now. Stupid little things that can mess up your whole day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No htaccess file’ is closed to new replies.