Announcement

Collapse
No announcement yet.

creating a .htaccess file

Collapse

Unconfigured Ad Widget

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • creating a .htaccess file

    WordPress Hosting on SSD Servers
    Hello,
    i was wondering how to setup a .htaccess file and where to put it on the server?? I want to use forceType to recognize files for use with PHP cause I am setting up clean urls.. Please let me know and I appreciate the help.

  • #2
    Re: creating a .htaccess file

    Hi,

    It seems that you want to convert .php extension files to .html extension files. Just add following lines to your .htaccess file ...

    AddType application/x-httpd-php .php .html

    Comment


    • #3
      Re: creating a .htaccess file

      Hello,

      The .htaccess file will automatically be created once your domain will host on Linuxserver. You do not need to create it manually. You can find it inside the 'public_html' folder. You just need to place the code
      AddType application/x-httpd-php .php .html there to perform it.

      Comment


      • #4
        Re: creating a .htaccess file

        I think I am on the windows server not the linux box... I tried creating my own .htaccess and it didn't work.. and what I want to do it to make a url that looks like this:

        example.com/index.php

        to

        example.com/index

        without actually removing the php file.... I just wanted to see if there was a way from stopping apache from displaying file extensions.

        Comment


        • #5
          ASP.Net Hosting starts @ $3.18/Mo.
          Re: creating a .htaccess file

          Windows uses IIS as a web server not apache, also there is nothing like .htaccess file in windows. Looking forward if there is any way you can do this in windows.

          Comment

          Working...
          X
          Sign up for a News Letter Click here to sign up