mmohdher
(Mustafa Mohdher )
28 March 2025 11:43
1
Dear All,
I just published my website (after completely deleting the old site), but the site is not working correctly. Images are missing, and none of the links are working.
I contacted HostGator support, and there appears to be something wrong with the index files.
Please hellllp
Was I not supposed to publish using this version?
Thank you
mmohdher
(Mustafa Mohdher )
28 March 2025 11:46
2
you can visit my site and check https://www.mamitc.sa . In some pages I get the text : var RWElements={};
mmohdher
(Mustafa Mohdher )
28 March 2025 11:49
3
HostGator support informed me that there are missing .htaccess file
dan
(Dan C.)
28 March 2025 12:47
4
Okay, try the following:
Quit Elements
Relaunch and open your project
Go to the File menu and select “Re-Publish All Files…”
Let me know if that fixes the issue for you.
mmohdher
(Mustafa Mohdher )
28 March 2025 12:58
5
No it did not fix the issue I am still getting var RWElements={}; if you navigate to my site
dan
(Dan C.)
28 March 2025 13:01
6
Okay, this is strange… Couple of things to keep this moving along…
Can you share the project with us so we can test it here?
Can you try exporting locally to a folder, and uploading with an FTP client like Transmit?
dan
(Dan C.)
28 March 2025 13:08
7
Having looked into this a little more… I’m wondering if the problem is actually being caused by you deleting your original .htaccess file (this would have been created by Host Gator).
This URL should resolve, but it doesn’t: https://www.mamitc.sa/page-12/ and if you add index.php to the URL, it then works: https://www.mamitc.sa/page-12/index.php
This seems to suggest the server isn’t routing things correctly.
Try creating a .htaccess file at the root of your web server (where you publish your site) with the following line in it:
DirectoryIndex index.html index.shtml index.php default.html home.html
https://www.hostgator.com/help/article/htaccess-guidance
mmohdher
(Mustafa Mohdher )
28 March 2025 13:12
8
Project uploaded
elementsapp://downloadDocument/0wHcEN0xlOuj
mmohdher
(Mustafa Mohdher )
28 March 2025 13:27
9
The file existed, but it was hidden + empty. I added the list you sent, and the site is working now, but a few images are missing. ill check and republish again
mmohdher
(Mustafa Mohdher )
28 March 2025 13:41
11
Its fine now after republish.
ill continue testing
Thank you very Much
1 Like
dan
(Dan C.)
28 March 2025 14:52
12
Glad it’s now back up and running