SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    having a problem placing an htaccess file in the wp-admin folder

    Hi one and all, I’ve a localhost installation with DeskTop Server. I’ve been trying to place an htaccess.php file in the wp-admin folder. Each time I type “.htaccess.php,” I get the dialog that says, “YOU MUST TYPE A FILE NAME.” Once I click OK, the “.” goes away and only “htaccess.php” remains. How do I get the “.htaccess.php” file loaded? Thanks.

  2. #2
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    It's called .htaccess

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,049
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    I'm guessing you mean an Apache file and not a PHP script file.

    The way I do it is create the file and FTP upload it as
    htaccess.txt

    Then I use the FTP app to rename it as
    .htaccess

  4. #4
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, guys. Mittineague, I know the process you mentioned, and it works. The present issue I've is with the localhost DesktopServer. I've not been able to use FTP with it. Thanks.

  5. #5
    SitePoint Zealot 2ndmouse's Avatar
    Join Date
    Jan 2007
    Location
    West London
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In that case, presumably, you're using some kind of control panel to upload files. There should be a file manager on there, via which you should be able rename a file. Simply upload your .htaccess.txt file and rename to .htaccess.
    Detect file changes remotely. SimpleSiteAudit is an early
    warning anti-hacker system which sends an alert on detection.

    PHP Find Orphan Files - Finds all the unreferenced files on your site.

  6. #6
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    2ndmouse, I'm not on a web server, but a local host on my computer. The method you mentioned works with the cpanel, and I've done that before. My current problem arises with the Desktop Server. I was told that how I was saving the .htaccess file was the problem. I'll try it, and see if it works. Thanks for help.


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
  •