- This topic has 3 replies, 2 voices, and was last updated 2 years, 8 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
Support for Envato Buyers › Forums › Mostore › Issues with installation
I just installed the PWA on my site, but getting a 404 error loading config and js files. Here’s my htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(mobile|mobile/.*)$
RewriteRule . /index.php [L]
</IfModule>
Hi
How about delete RewriteCond %{REQUEST_URI} !^/(mobile|mobile/.*)$ ?
You can post your site link and temporary login details via the private reply?
Thanks
Hi
I can’t find the reason that why the js file (config.js) can’t be accessed on your server, it seems JS file is denied within WordPress directory, maybe it’s a server configuration issue. So there are two solutions now without changing the server configuration.
1. Remove “script src=”./config/config.95bd043663c81808df96e369b5eecf8d.js”/script” from mobile/index.html file, and add window.website_url = “https://wiperbladeoutlet.com/” to index.html. I already did, so now you can see the products are displayed as normal in the web app.
2. You can move “mobile” folder out of the WordPress directory, and set it as a separate site with a subdomain name such as mobile.domain.com,
then go to Mofect Mobile > Mobile Configuration page, turn on the “Custom URL” option, and change “Mobile APP URL” to https://mobile.domain.com