SEF urls not working on IIS 8

This forum is for issues with installing Joomla! 3.x on IIS webservers.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
silicon_ian
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Aug 09, 2019 2:48 pm

SEF urls not working on IIS 8

Post by silicon_ian » Fri Aug 09, 2019 5:45 pm

I have gone through the guide to enable SEF urls on my site but they do not work. You get to the index page, when you click on a link it rewrites the url correctly and reloads the index page.

I have also browsed the forums for similar issues, but I can not seem to find a solution.

Places I have already looked:
https://docs.joomla.org/IIS
https://docs.joomla.org/Special:MyLangu ... (SEF)_URLs
https://docs.joomla.org/Enabling_Search ... S/IIS6/1.5 - Not applicable
https://docs.joomla.org/Enabling_Search ... RLs_on_IIS
https://docs.joomla.org/IIS7_and_SEF_UR ... oomla_1.5x
https://docs.joomla.org/Special:MyLangu ... (SEF)_URLs

This post was very close to the issue that I am having but not IIS8 specific: viewtopic.php?f=712&t=967094&p=3547406& ... y#p3547406

This site is not on the internet, and I am aware that I have way to many 777 permissions.

Here is the Post Assistant output,
Forum Post Assistant (v1.4.9 (lambrusca) : 9th August 2019 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.9.10-Stable (Amani) 10-July-2019
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (444) | Owner: --protected-- . (uid: /gid: ) | Group: --protected-- (gid: ) | Valid For: 3.9
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: false | .htaccess/web.config: Yes | GZip: true | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: http://carmischools.org | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.9.10: Yes | Database Supports J! 3.9.10: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Windows NT | OS Version: 6.3 | Technology: AMD64 | Web Server: Microsoft-IIS/8.5 | Encoding: gzip, deflate | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 98.48 GiB |

PHP Configuration :: Version: 7.3.7 | PHP API: cgi-fcgi | Session Path Writable: Yes | Display Errors: | Error Reporting: 22527 | Log Errors To: C:\Windows\temp\PHP73x64_errors.log | Last Known Error: 31st July 2019 15:17:32. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 60M | Max. POST Size: 60M | Max. Input Time: 60 | Max. Execution Time: 300 | Memory Limit: 128M

Database Configuration :: Version: 5.1.73-community (Client:mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $) | Host: --protected-- (--protected--) | default Collation: utf8_general_ci (default Character Set: utf8) | Database Size: 6.06 MiB | #of Tables: 111
Detailed Environment :: wrote:PHP Extensions :: Core (7.3.7) | bcmath (7.3.7) | calendar (7.3.7) | ctype (7.3.7) | date (7.3.7) | filter (7.3.7) | hash (7.3.7) | iconv (7.3.7) | json (1.7.0) | SPL (7.3.7) | pcre (7.3.7) | readline (7.3.7) | Reflection (7.3.7) | session (7.3.7) | standard (7.3.7) | mysqlnd (mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $) | tokenizer (7.3.7) | zip (1.15.4) | zlib (7.3.7) | libxml (7.3.7) | dom (20031129) | PDO (7.3.7) | openssl (7.3.7) | SimpleXML (7.3.7) | xml (7.3.7) | wddx (7.3.7) | xmlreader (7.3.7) | xmlwriter (7.3.7) | cgi-fcgi () | mysqli (7.3.7) | mbstring (7.3.7) | gd (7.3.7) | gettext (7.3.7) | curl (7.3.7) | exif (7.3.7) | xmlrpc (7.3.7) | Phar (7.3.7) | soap (7.3.7) | pdo_mysql (7.3.7) | pdo_sqlite (7.3.7) | imap (7.3.7) | tidy (7.3.7) | wincache (2.0.0.8) | Zend Engine (3.3.7) |
Potential Missing Extensions ::

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: No | PHP SU: Yes | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (777) | components/ (777) | modules/ (777) | plugins/ (777) | language/ (777) | templates/ (777) | cache/ (777) | logs/ (---) | tmp/ (777) | administrator/components/ (777) | administrator/modules/ (777) | administrator/language/ (777) | administrator/templates/ (777) | administrator/logs/ (777) |

Elevated Permissions (First 10) :: administrator/ (777) | administrator/cache/ (777) | administrator/components/ (777) | administrator/components/com_actionlogs/ (777) | administrator/components/com_actionlogs/controllers/ (777) | administrator/components/com_actionlogs/helpers/ (777) | administrator/components/com_actionlogs/layouts/ (777) | administrator/components/com_actionlogs/libraries/ (777) | administrator/components/com_actionlogs/models/ (777) | administrator/components/com_actionlogs/models/fields/ (777) |
Database Information :: wrote:Database statistics :: Uptime: 12529 | Threads: 1 | Questions: 5805 | Slow queries: 0 | Opens: 525 | Flush tables: 1 | Open tables: 114 | Queries per second avg: 0.463 |
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party::

Components :: ADMIN ::
Core :: com_actionlogs (3.9.0) 1 | com_admin (3.0.0) 1 | com_ajax (3.2.0) 1 | com_associations (3.7.0) 1 | com_banners (3.0.0) 1 | com_cache (3.0.0) 1 | com_categories (3.0.0) 1 | com_checkin (3.0.0) 1 | com_config (3.0.0) 1 | com_content (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_cpanel (3.0.0) 1 | com_fields (3.7.0) 1 | com_finder (3.0.0) 1 | com_installer (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_languages (3.0.0) 1 | com_login (3.0.0) 1 | com_media (3.0.0) 1 | com_menus (3.0.0) 1 | com_messages (3.0.0) 1 | com_modules (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_plugins (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_privacy (3.9.0) 1 | com_redirect (3.0.0) 1 | com_search (3.0.0) 1 | com_tags (3.1.0) 1 | com_templates (3.0.0) 1 | com_users (3.0.0) 1 |
3rd Party:: com_docman (2.1.6) 1 | com_extman (2.2.7) 1 | com_fileman (2.1.5) 1 | COM_MIGRATEME (2.8.16) 1 |

Modules :: SITE ::
Core :: mod_articles_archive (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_search (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_tags_similar (3.1.0) 1 | mod_users_latest (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_wrapper (3.0.0) 1 |
3rd Party:: mod_docman_categories (2.1.6) 1 | mod_docman_documents (2.1.6) 1 |

Modules :: ADMIN ::
Core :: mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_logged (3.0.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_quickicon (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_stats_admin (3.0.0) 1 | mod_status (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_title (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_version (3.0.0) 1 |
3rd Party::

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: PLG_ACTIONLOG_JOOMLA (3.9.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_captcha_recaptcha (3.4.0) 0 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_content_confirmconsent (3.9.0) 0 | plg_content_emailcloak (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_joomla (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_vote (3.0.0) 0 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_repeatable (3.9.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_installer_webinstaller (2.0.1) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_tags (3.0.0) 1 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_p3p (3.0.0) 0 | plg_system_privacyconsent (3.9.0) 0 | plg_system_redirect (3.0.0) 0 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_stats (3.5.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 | plg_user_terms (3.9.0) 0 |
3rd Party:: plg_content_doclink (2.1.6) 1 | plg_editors_codemirror (5.40.0) 1 | plg_editors_tinymce (4.5.11) 1 | plg_editors-xtd_doclink (2.1.6) 1 | Button - FILElink (2.1.5) 1 | plg_finder_docman (2.1.6) 0 | plg_search_docman (2.1.6) 1 | plg_system_directalias (2.0.0) 0 | plg_system_koowa (2.1.7) 1 | plg_system_ossystem (1.3.0) 1 |
Templates Discovered :: wrote:Templates :: SITE :: beez3 (3.1.0) 1 | js_community (4.3.7) 1 | protostar (1.0) 1 |
Templates :: ADMIN :: hathor (3.0.0) 1 | isis (1.0) 1 |
I would greatly appreciate any help!

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25885
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: SEF urls not working on IIS 8

Post by Per Yngve Berg » Fri Aug 09, 2019 7:55 pm

Have you renamed webconfig.txt to web.config?

File permissions on Windows differ from Linux, so you will always have 777.

silicon_ian
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Aug 09, 2019 2:48 pm

Re: SEF urls not working on IIS 8

Post by silicon_ian » Fri Aug 09, 2019 8:21 pm

Yes, I have renamed the webconfig.txt to web.config

Here is the file,

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <location path=".">
   <system.webServer>
       <directoryBrowse enabled="false" />
       <rewrite>
      <rules>
        <rule name="Security Rule" stopProcessing="true">
          <match url="^(.*)$" ignoreCase="false" />
          <conditions logicalGrouping="MatchAny">
            <add input="{QUERY_STRING}" pattern="mosConfig_[a-zA-Z_]{1,21}(=|\%3D)" ignoreCase="false" />
            <add input="{QUERY_STRING}" pattern="base64_encode.*\(.*\)" ignoreCase="false" />
            <add input="{QUERY_STRING}" pattern="(\&lt;|%3C).*script.*(\>|%3E)" />
            <add input="{QUERY_STRING}" pattern="GLOBALS(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" />
            <add input="{QUERY_STRING}" pattern="_REQUEST(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" />
          </conditions>
          <action type="CustomResponse" url="index.php" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
        </rule>
        <rule name="SEO Rule">
          <match url="(.*)" ignoreCase="false" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
            <add input="{URL}" negate="true" pattern="^/index.php" ignoreCase="false" />
            <add input="{URL}" pattern="(/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$" />
          </conditions>
          <action type="Rewrite" url="index.php" />
        </rule>
      </rules>
       </rewrite>
       <httpProtocol>
           <customHeaders>
               <add name="X-Content-Type-Options" value="nosniff" />
           </customHeaders>
       </httpProtocol>
            <handlers>
                <remove name="AboMapperCustom-189805" />
                <add name="AboMapperCustom-189805" path="*.php" verb="*" modules="CgiModule" scriptProcessor="C:\Program Files\PHP\v7.3\php-cgi.exe" resourceType="Unspecified" requireAccess="Script" responseBufferLimit="0" />
            </handlers>
   </system.webServer>
   </location>
</configuration>

User avatar
abernyte
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3649
Joined: Fri May 15, 2009 2:01 pm
Location: Écosse - Scozia - Escocia - Škotija -स्कॉटलैंड

Re: SEF urls not working on IIS 8

Post by abernyte » Mon Aug 12, 2019 1:29 pm

Remove the live site variable from configuration.php and leave it empty, you don't need it in a properly configured server.
It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so. Twain


Post Reply

Return to “Joomla! 3.x on IIS webserver”