Hi Guys
I have set up my Spreadshop on a custom domain, using my own server, which I have full access rights to:
https://store.establishmindfulness.com
I want to get rid of the hash bang #!
The server is Windows 2019 IIS10
I use URL Rewrite [web.config] and have successfully got rid of the hash with my Angular websites,
Anyway, I see you give some advice about this issue with:
usePushState
boolean(default:
false )
In a standardised way, hashbang URLs are created when navigating an embedded Shop (
.../shop/#!/männer+t-shirts?q=P24
). You can bypass this by setting the parameter totrue
. This is considered an expert feature since it requires changes to the.htaccess
-file on your webserver
Here is my web.config for one of my Angular websites, which I think just use # rather than #!
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<rewrite>
<rules>
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Allow browser refresh and direct URL in Angular app" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
<httpRedirect enabled="false" destination="" />
</system.webServer>
</configuration>
Could you give me an example of how I could remove the hash bang on Windows. Thanks
Charlie