WordPress.org

Ready to get started?Download WordPress

Forums

htaccess (5 posts)

  1. bristolgolfer
    Member
    Posted 1 year ago #

    I'm running WP on a Fasthosts shared server under IIS

    How does the mod-rewrite work as I understood that htaccess only works on linux.

    Thanks in advance.
    Vance - Bristol

  2. ClaytonJames
    Member
    Posted 1 year ago #

    How does the mod-rewrite work as I understood that htaccess only works on linux.

    That is correct (for the most part). The .htaccess file is a file extension used with web servers that are not IIS (Apache) .htaccess does not work with IIS.

    You should contact your hosts support group for instructions on how you might be able to change your permalink structure for use on their Windows server.

  3. bristolgolfer
    Member
    Posted 1 year ago #

    Hi ClaytonJames

    Just to make it clear. WP permalinks seem to work fine on my Fasthosts IIS platform although FH support tells me that htaccess is not supported...only on linux...but it still works even if I delete the htaccess file.

    This works ok:
    http://www.theinternetgolfclub.com/wordpress/index.php/welcome-to-the-internet-golf-club-blog/

    Is index.php 'trapping' the rest of the incoming URL somehow?

    Confused of Bristol here!!

    Regards
    Vance

  4. ClaytonJames
    Member
    Posted 1 year ago #

    FH support tells me that htaccess is not supported...
    ...but it still works even if I delete the htaccess file.

    That's correct. You can place .htaccess files on your site all day long, and IIS (your Windows web server) will just ignore them. IIS web server does not recognize the .htaccess file extension.

    If permalinks are working, then it's because your host has configured their Windows server to allow you to use alternate permalink structures. It has nothing to do with an .htaccess file.

    I'm seeing .php pages, .asp pages, and WordPress installed in a sub-directory on your site, So the "index.php" in your WordPress URL's, is probably what is actually allowing you to use alternate, or "almost pretty" permalinks. Some reference material regarding permalinks: Using Permalinks and PATHINFO: "Almost Pretty" permalinks.

  5. bristolgolfer
    Member
    Posted 1 year ago #

    Many thanks.

    All I need to do now is understand how it works!!!

    Regards
    Vance

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags