SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  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,658
    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,237
    Mentioned
    194 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.

  7. #7
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,237
    Mentioned
    194 Post(s)
    Tagged
    2 Thread(s)
    Are you able to save an .htaccess file anywhere on your computer?

    I'm using Windows 7 and it lets me.

    If you can save it in another folder, can you not move or copy it to the localhost folder?

  8. #8
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if I can save it elsewhere on my XP. I was told that I need to write it in notepad or another text editor, ensure that I've selected ANSI, and to leave off the ".php." That means I'll save only ".htaccess" I did that, and I didn't get the error message “YOU MUST TYPE A FILE NAME,” so I'm believing it's going to work.

  9. #9
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,237
    Mentioned
    194 Post(s)
    Tagged
    2 Thread(s)
    If you have problems, try opening the editor from the right-click "Run as administrator"

  10. #10
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It appears that the process I described above that I was given to me, and tried, worked. Thanks for your efforts. I appreciate them.


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
  •