• Resolved francan

    (@francan)


    I changed permalink option to “/date/posting” but when tried to update the change I got a message. It said that it couldn’t change the .htaccess automatically. When I tried to find the .htaccess file, I could not find it.

    advice will highly appreciated

    Regards,
    Ming

Viewing 8 replies - 1 through 8 (of 8 total)
  • The .htaccess file is a hidden file by default. Turn on the “show hidden files” option in your ftp client and see if that does the trick. Then you will need to change the permissions on .htaccess to at least 666 to allow WordPress to write to the file. You can then change it back to 644 after it has been updated.

    Some FTP applications won’t show hidden files by default. For instance, to make .htaccess visible in Filezilla, check “Force showing hidden files” under Server tab. Then you need to change .htaccess attributes to numeric value something from 644 or 664 or even 666 ( all depends on your server) to make .htaccess writable.

    Make sure to revert file permissions back to 644 when your permalink structure is set up. 666 .htaccess file can be easily abused.

    @claytonjames,

    what a traffic!

    I didn’t see you posted.
    ??

    Hee..hee..

    I hate when that happens! Usually it’s me stepping all over someone else. No worries. At least we look like there’s a pretty good chance we know what we’re talking about!

    ??

    Thread Starter francan

    (@francan)

    Hi, Guys!

    You’re terrific! Thanks for the advice; really appreciate it.

    I use filezila for FTP and already set the “Force showing hidden files” to active but still cannot see the .htaccess file. Btw, where is the file located? (Just wanna make sure I observe the right directory.)

    should I create the file manually? How?

    Thanks!

    wow, francan…

    I have thought it’s over and returned back by the chance…

    anyway, .htaccess sits in the web root if you use wordpress in your root, otherwise it sits in a folder ( like https://www.yoursite.com/your_folder_with_wordpress )

    If you don’t see it at all, try to make this file in the plain editor ( No MS WORD, G-d forbid ??

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

    and save it as .htaccess

    then upload it in your root

    please be advised if your wordpress doesn’t sit in the root, you need to change one line in the file

    RewriteRule . /your_wordpress_folder/index.php [L]

    take care

    Thread Starter francan

    (@francan)

    Dear bottleneck (& also ClaytonJames),

    I, as suggested, have created the “1.htaccess” file using Notepad. The content of the file is

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

    Then I uploaded the file using FileZila and renamed the file into “.htaccess”. I also changed the file permission to “777”.

    I changed my permalink to “pretty” option and it worked just fine. Then I changed back the .htaccess file permission to “644”.

    Now, everything seems to be working well.

    Again, thanks for taking all the trouble helping me out; really appreciate it.

    thanks for the support!! i was going crazy there for a minute

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