Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Mark Brown 1 year, 3 months ago.

  • Author
    Posts
  • #1381
    Sebastian Fragale Sebastian Fragale 
    Participant

    I have to do a lot of custom PHP setting, how can I setup a custom .htaccess to enable the custom PHP Settings

  • #1382
     Mark Brown 
    Participant

    Setting up a custom .htaccess file

    You can use PHP directives in an .htaccess file to control many PHP settings. Additionally, you can set up one or multiple custom .htaccess files to define how your web site functions. For example, you might have a custom file in your public_html directory for your web site’s main pages, and a separate custom file in your public_html/images directory for your web site’s image files.

    To set up a custom .htaccess file, follow these steps:

    – Log in to your TD Web Services Hosting account using cPanell.
    – Use a File Manager to create an .htaccess file in your web site’s document root directory.
    – Alternatively, if you want to set PHP settings for a specific subdirectory, create the .htaccess file in that subdirectory.
    – For security reasons, the .htaccess file contents should not be visible to the public. To do this, add the following lines to the .htaccess file:

        # Prevent Apache from serving .ht* files:
        <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
        </FilesMatch>
    

    – Save the changes and exit the text editor. You are now ready to add specific PHP directives to the .htaccess file.

    You can always get in touch with our support team who will be able to help you further with the same.

You must be logged in to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending
TD Web Services

 COPYRIGHT OF TD WEB SERVICES © 2017. ALL RIGHTS RESERVED.

or

Log in with your credentials

or    

Forgot your details?

or

Create Account