Your Advert here
cure-real
Results 1 to 9 of 9

Thread: Trying to create a .htaccess for wordpress.

  1. #1

    Trying to create a .htaccess for wordpress.

    In the WP-Admin folder a .htaccess file is needed. Except I cannot create one. I tried to with notepad. When I uploaded it, it just disappeared. From another suggestion, I took a file that already existed on the server and copy it to the folder needed, then changed the name and it disappeared. The code that needs to exist in it is this, from what I'm told:

    Code:
    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
    Now could the server be set to not accept this type of file? I have no idea why It just disappears each time I make one.
    Note: By request I can only post and see the tech section of this forum. So don't respond to my posts in the other sections because I cannot see them so I cannot respond. You can PM me if you need to.
    My site: http://www.yecheadquarters.org/

  2. #2
    Join Date
    May 2011
    Posts
    290
    Blog Entries
    2

    Re: Trying to create a .htaccess for wordpress.

    Some FTP software doesn't atumotically show all files. I suspect your file is there, you just can't see it. What program are you using, or are you using cPanel or something similar? I know in cPanel there is box you need to check, and some other FTP software requires you to do something similar.
    Don't bother quoting me, I'll go back and correct my posts about a dozen times so I can fix all the dumb mistakes, typos, and parts that don't make sense, once I'm done then you can quote it.

  3. #3
    Join Date
    Jul 2002
    Location
    JNB, ZA
    Posts
    1,653

    Re: Trying to create a .htaccess for wordpress.

    Bob's correct - in the FTP software, there is usually a checkbox "show dot files" or "show hidden files". (Dot files are hidden files in Linux)

    In your cPanel file manager there is also a checkbox to "show hidden files".
    Wherever I find myself, there I am.
    Download Free Bibles or Read online
    Christian WebHosting


  4. #4

    Re: Trying to create a .htaccess for wordpress.

    You were right. I did not check that box to show hidden files in Cpanel. I found the file, put the code in and it works (no more errors from certain plugins for WP). Just for security, I only know basic code so I don;t understand the code I posted. And because I don;t know the person who posted this in another forum, it makes me wonder if what written might leave a hack point. Probably not, but you never know.

    Question: What CHMOD should I set it to? 644?

    Also, here is one more issue one program comes up with. I'm kinda leary about doing what it says:
    security.jpg

    What's involved in changing the name as it says? Am I asking for trouble so just leave it alone? Everything works fine.
    Note: By request I can only post and see the tech section of this forum. So don't respond to my posts in the other sections because I cannot see them so I cannot respond. You can PM me if you need to.
    My site: http://www.yecheadquarters.org/

  5. #5
    Join Date
    Jul 2002
    Location
    JNB, ZA
    Posts
    1,653

    Re: Trying to create a .htaccess for wordpress.

    Quote Originally Posted by ikester7579 View Post
    Question: What CHMOD should I set it to? 644?
    PHP files images and HTML: 0644
    PHP config files: 0600 for security
    .htaccess: 0644 is fine
    All folders: 0755 (NEVER 0777!)
    Wherever I find myself, there I am.
    Download Free Bibles or Read online
    Christian WebHosting


  6. #6

    Re: Trying to create a .htaccess for wordpress.

    Okay, cool. I usually leave the CHMOD alone unless there is a problem. So default for the server is what everything is. I just thought that it might need a lower number than 644. Or maybe a higher one because of write issues. But the error message went away so everything fine. Something I'm not sure I ask. Better safe then sorry I say. Thanks.

    Like your new picture of your cat. I'm a cat and dog person. Though right now I don't have neither,
    Note: By request I can only post and see the tech section of this forum. So don't respond to my posts in the other sections because I cannot see them so I cannot respond. You can PM me if you need to.
    My site: http://www.yecheadquarters.org/

  7. #7
    Join Date
    Jul 2002
    Location
    JNB, ZA
    Posts
    1,653

    Re: Trying to create a .htaccess for wordpress.

    Quote Originally Posted by ikester7579 View Post
    Like your new picture of your cat.
    That's my baby Rusty. She follows me around like a shadow and pines for me if I'm not at home for whatever reason. I've never had a cat and if anyone had told me 5 years ago I'd become so attached to an animal I would have laughed at them. Just goes to show ...
    Wherever I find myself, there I am.
    Download Free Bibles or Read online
    Christian WebHosting


  8. #8

    Re: Trying to create a .htaccess for wordpress.

    Quote Originally Posted by bdh View Post
    That's my baby Rusty. She follows me around like a shadow and pines for me if I'm not at home for whatever reason. I've never had a cat and if anyone had told me 5 years ago I'd become so attached to an animal I would have laughed at them. Just goes to show ...
    When animals bond with you emotionally, that is what they do.

    A kid and his dog in the neighborhood next to where I live were best buds. The dog would follow the kid to the bus stop. And know when to come back to greet the kid when he got home. One day the kid was hit buy a car that did not stop (ran, police never found them). The dog goes to the bus stop everyday waiting for that kid to get off the bus. I used to deliver pizzas, and would see that dog waiting there everyday. It was sad.
    Note: By request I can only post and see the tech section of this forum. So don't respond to my posts in the other sections because I cannot see them so I cannot respond. You can PM me if you need to.
    My site: http://www.yecheadquarters.org/

  9. #9
    Join Date
    Jul 2002
    Location
    JNB, ZA
    Posts
    1,653

    Re: Trying to create a .htaccess for wordpress.

    Sad but pretty amazing too.
    Wherever I find myself, there I am.
    Download Free Bibles or Read online
    Christian WebHosting


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Discussion Wordpress backup plugins.
    By ikester7579 in forum Website stuff
    Replies: 7
    Last Post: Jun 7th 2011, 03:09 PM
  2. Discussion What to do with wordpress spam bot?
    By ikester7579 in forum Website stuff
    Replies: 3
    Last Post: Apr 29th 2011, 09:26 AM
  3. Need Advice: Wordpress, need opinions.
    By ikester7579 in forum Website stuff
    Replies: 14
    Last Post: Apr 26th 2011, 06:54 AM
  4. Need Advice: Wordpress
    By ikester7579 in forum Website stuff
    Replies: 14
    Last Post: Mar 28th 2011, 01:44 AM

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
  •