Results 1 to 7 of 7

Thread: .htaccess

Hybrid View

  1. .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
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    You should be able to create a .htaccess file.

    Is the file hidden? Perhaps there already is one.

  3. #3
    .htaccess means = file is hidden ( due to . )

  4. #4
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772

  5. #5
    Join Date
    Feb 2009
    Location
    New York, USA
    Posts
    1,137
    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
    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
    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, 12:48 PM
  3. .htaccess / redirect to 'www.'
    By Snak3 in forum On-Site SEO
    Replies: 12
    Last Post: 30 December, 2009, 20: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
  •