Results 1 to 7 of 7

Thread: .htaccess

  1. #1
    dodolls is offline Wide Traveler
    Join Date
    Aug 2009
    Posts
    40
    Thanks
    3
    Thanked 4 Times in 4 Posts

    .htaccess

    Quick question. Why is .htaccess not supported by many servers? Really wondered why not all allow the file to be created.

    Thanks.

  2. #2
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts
    You should be able to create a .htaccess file.

    Is the file hidden? Perhaps there already is one.

  3. #3
    abinowbhat's Avatar
    abinowbhat is offline Net Builder
    Join Date
    Oct 2009
    Location
    Cyberspace
    Posts
    166
    Thanks
    16
    Thanked 19 Times in 9 Posts
    .htaccess means = file is hidden ( due to . )

  4. #4
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts

  5. #5
    Zash's Avatar
    Zash is offline WiredStorm.com - Lightning Fast Web Hosting
    Join Date
    Feb 2009
    Location
    New York, USA
    Posts
    1,137
    Blog Entries
    1
    Thanks
    64
    Thanked 121 Times in 93 Posts
    Most Apache servers do allow it. If you are using cPanel, make sure that you are able to see files that start with a (.) - if not use FTP.
    WiredStorm Hosting Solutions
    █ Lightning Fast Shared and Reseller Hosting
    █ cPanel with Softaculous and 24/7 Email (Ticket) Support
    Biodegradable Sunscreen - Unblock Facebook

  6. #6
    Aziz's Avatar
    Aziz is offline no investment, no glory
    Join Date
    May 2009
    Location
    IL
    Posts
    736
    Thanks
    588
    Thanked 243 Times in 168 Posts
    before you enter the cPanel make sure the "hide .htaccess files" is unchecked so you can see it in your server (using cpanel )

    as for creation, try to create it with notepad:

    create .txt file > open with notepad > save as > type *.* > then .htaccess > save

  7. #7
    Coastercraze's Avatar
    Coastercraze is offline Net Builder Legend
    Join Date
    Jan 2009
    Location
    Under powerlines
    Posts
    499
    Blog Entries
    3
    Thanks
    94
    Thanked 59 Times in 48 Posts
    Quote Originally Posted by dodolls View Post
    Quick question. Why is .htaccess not supported by many servers? Really wondered why not all allow the file to be created.

    Thanks.
    It's supported on most hosts except for those who use Windows. If you're talking about PHP flags in a .htaccess it is because the host has suPHP on at which there is a workaround for that.

    The work around for this is to use your php.in file.. here is an example

    running suPHP you can no longer use the .htacess to change any php
    All the php_flags in your .htaccess will have to be moved to php.ini, which you will have to create in your public_html directory.

    Example:
    .htaccess » php_flag register_globals off
    php.ini » register_globals = Off

    The file php.ini will handle all the extra settings you need to set in php.
    So, basically you will have to move every command on .htaccess that starts with php_flag.


    This is because php is no longer running as an apache module and apache will not handle those directives any longer.

    Creating a php.ini file to manipulate the php settings will solve this issue.
    You will need to also add this to your .htaccess file to direct it to the php.ini file.
    suPHP_ConfigPath /home/username/public_html
    Credits to Iwhic for this nifty tutorial (who I think still is around)
    Webmaster Forums
    Host Mist | Shared | Reseller | VPS | Dedicated
    Arcade Master - Rule the arcade!

Similar Threads

  1. .htaccess Problem
    By ProxySites.ca in forum Managing
    Replies: 1
    Last Post: 12 April, 2010, 20:11 PM
  2. How To Update .htaccess
    By garfish in forum Wordpress
    Replies: 7
    Last Post: 9 January, 2010, 11:48 AM
  3. .htaccess / redirect to 'www.'
    By Snak3 in forum On-Site SEO
    Replies: 12
    Last Post: 30 December, 2009, 19:13 PM
  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
  •