Results 1 to 8 of 8

Thread: How To Update .htaccess

  1. #1
    garfish's Avatar
    garfish is offline I'm Not Sure.
    Join Date
    May 2009
    Posts
    840
    Blog Entries
    12
    Thanks
    155
    Thanked 56 Times in 53 Posts

    How To Update .htaccess

    how dyou update your .htaccess for the permalink?
    it says
    Code:
     yoy hould update your .htaccess now.
    but after copying theseodes and paste it in the .htaccess, it dont work.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    i sthere anything else i should do?
    funny since i don't remember i've encounter this error to my first blog.
    somebodt tell me please.

  2. #2
    Shenron's Avatar
    Shenron is offline Administrator
    Join Date
    Dec 2008
    Location
    Portugal
    Posts
    1,900
    Blog Entries
    2
    Thanks
    561
    Thanked 548 Times in 368 Posts
    I believe you're using Wordpress.

    Here's the easiest way:

    Chmod .htaccess to 777
    Change the permalinks structure on wordpress and save it
    Chmod back to 644

    Should work this way, there's no need for you to hand update it.

  3. #3
    TopDogger's Avatar
    TopDogger is online now Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    2,247
    Thanks
    293
    Thanked 769 Times in 564 Posts
    The .htaccess file only works on a Unix or Linux server running Apache. It will not work on a Microsoft server or if your hosting company does not allow server overrides.
    "It's inexcusable for scientists to torture animals; let them make their experiments on journalists and politicians." -Henrik Ibsen

  4. #4
    garfish's Avatar
    garfish is offline I'm Not Sure.
    Join Date
    May 2009
    Posts
    840
    Blog Entries
    12
    Thanks
    155
    Thanked 56 Times in 53 Posts
    thanks you guys. however, chmod don't change back the permission to 644 or its just that i'm not sure about the commands
    i log in to the cpanel and right click to it, but still permission didn't change back.

  5. #5
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,282
    Thanks
    590
    Thanked 284 Times in 214 Posts
    Hi,

    I never use cpanel. Did you try it from a ftp.

    Butterflies Forever

    Sami
    Check out the Current Celebrity Gossip
    Bored??? TV Shows, Movies & More TV Site

  6. #6
    abinowbhat's Avatar
    abinowbhat is offline Net Builder
    Join Date
    Oct 2009
    Location
    Cyberspace
    Posts
    166
    Thanks
    16
    Thanked 19 Times in 9 Posts
    Hi!

    CHMOD can change the permissions back. I believe that you are not using it properly. You can take the help of your host provider like I do

  7. #7
    maxbest is offline Newbie Net Builder
    Join Date
    Dec 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you have knowledge of control panel then you can change it easily. But do this task carefully & save previous file in your computer to avoid wrong entry.

  8. #8
    Andy101's Avatar
    Andy101 is online now Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,043
    Thanks
    151
    Thanked 278 Times in 206 Posts
    I logged into my cPanel and clicked on the File Manager icon.

    Then I clicked on the folder icon for the public_html folder.

    Then I get a listing of all the files and directories which includes .htaccess

    This had file permissions set to 644

    Then I click on the file icon and get a list of things that I can do in the right side of the page.

    One of these is "Change Permissions" so I click on the link for this and can change the permissions OK back and forth.
    Hidden Hit Counter My forum signature is under construction.

Similar Threads

  1. .htaccess Problem
    By ProxySites.ca in forum Managing
    Replies: 1
    Last Post: 12 April, 2010, 20:11 PM
  2. .htaccess / redirect to 'www.'
    By Snak3 in forum On-Site SEO
    Replies: 12
    Last Post: 30 December, 2009, 19:13 PM
  3. .htaccess
    By dodolls in forum Managing
    Replies: 6
    Last Post: 15 November, 2009, 06:58 AM
  4. help with htaccess redirection
    By MeetHere in forum Programming
    Replies: 10
    Last Post: 18 October, 2009, 17:01 PM
  5. .htaccess help
    By Sami4u in forum Building
    Replies: 3
    Last Post: 14 September, 2009, 13:47 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •