Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts

    allow .htaccess files

    Is there some way to allow .htaccess files in xp pro.
    (it will say you need a filename if you try)


    Thanks,
    Adam
    Why not thank me?

    http://adamsworld.name

  • #2
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Whatcha mean "allow"? Register them as a file type and open them? I just open mine in notepad and set this to be the default action.

  • #3
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    NO, sorry for not explaining more clearly...
    I mean to create them. Windows wont allow for a file to be extension only. And as far as I can see there is no option around that. (just the same as it wont allow you to make a file ".txt") Is there a setting I can change in xp to allow this, or is there an apache way? I looked through the conf and, well lets just say I started to zone out...


    Thanks,
    ILLINI
    Why not thank me?

    http://adamsworld.name

  • #4
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Well the way I get around that is when I create a .htaccess file, I do the following:

    -start up notepad
    -code .htaccess file contents
    -file > save as > save as type: all files
    -filename: .htaccess.

    And preso, the nice .htaccess file is sitting on my desktop...works for me.

  • #5
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    ok, thanks.
    I knew that it can at least open them and reconize them, because I transfered from linux to windows a site, and the files opened and stuff, guess i had never tried to make a new one though.


    Thanks,
    ILLINI
    Why not thank me?

    http://adamsworld.name

  • #6
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,465
    Thanks
    0
    Thanked 634 Times in 624 Posts
    .htaccess doesn't have a file extension (the leading dot is the hide file instruction for Unix based operating systems).

    To force a filename to save without an extension in Windows simply include the filename in quotes.

    ".htaccess"
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #7
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Thanks, This works.
    FYI: I found another fix(but im not going to use it). In the conf there is a line that specifies the directory instructions. You can change it to whatever you want. But some packages and other scripts will not work until you rename the file to whatever you have in the conf. Your ways are much better...


    Thanks,
    ILLINI
    Why not thank me?

    http://adamsworld.name


  •  

    Posting Permissions

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