I run a store that’s hosted on GoDaddy and the URL has hashbang at the end. I found a script that’s supposed to fix it, but it didn’t work. I contacted Spreadshirt about it and they said their code isn’t compatible with GoDaddy. Can someone please tell me what GoDaddy does to their code and how to fix it? If there isn’t a way to fix it, then can someone at Spreadshirt find some way to make their code compatible with GoDaddy? There’s a WordPress plugin that embeds Spreadshirt stores in WordPress websites, but my store’s website was hand built using HTML, so that’s not an option.
That’s the script I tried, it didn’t work.
If you can put link to your store , I think this will help others to understand the problem more
1 Like
ad/infinitum.co
I am not an expert on this, but since there is no response to the post, I’ll give you things to try.
try to set usePushState to true on your embed shop javascript code.
it will be somthing like this:
<script>
var spread_shop_config = {
shopName: 'myshop',
locale: 'us_US',
prefix: 'https://shop.spreadshirt.com',
baseId: 'myShop',
usePushState: true,
updateMetadata: true,
};
</script>
<script type="text/javascript"
src="https://shop.spreadshirt.com/shopfiles/shopclient/shopclient.nocache.js">
</script>
dont copy and paste just add usePushState: true to your code
you may need add this to .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.html [L]
</IfModule>
1 Like
I tried that and it worked. Thanks for the help.
2 Likes