Page 1 of 1
site domain masking not working
Posted: Fri Jul 21, 2023 3:22 pm
by keydog
site domain masking not working
just put up this site
trying to have the domain masked to show the name of site
hosting is telling me the masking is not working because of a problem with the code
they see some error in the code
I don't know where, the software is not telling me there are any errors
only way I have been able to get it to show up is with the main domain / the folder on the server with the new site
http://thearcadeboneyard.com/key-shop/index.php
Re: site domain masking not working
Posted: Fri Jul 21, 2023 3:30 pm
by Pablo
How is this related to the software
What is the "error in the code"?
Re: site domain masking not working
Posted: Fri Jul 21, 2023 3:34 pm
by keydog
Im not sure how it is related to the software
hosting support is telling me there is an error in the site code that is keeping the domain masking from working
Re: site domain masking not working
Posted: Fri Jul 21, 2023 3:41 pm
by BaconFries
hosting support is telling me there is an error in the site code
Then what is the error code or the error
'in' the code they are referring to?
Re: site domain masking not working
Posted: Fri Jul 21, 2023 3:57 pm
by jerryco
What are you trying to do when you say
trying to have the domain masked to show the name of site
Re: site domain masking not working
Posted: Fri Jul 21, 2023 4:16 pm
by keydog
trying to get this
http://thearcadeboneyard.com/key-shop/index.php
to show in browser as this
TheKeyShopOnline.com
Re: site domain masking not working
Posted: Fri Jul 21, 2023 4:47 pm
by Pablo
The domain configuration has nothing to do with the software.
Re: site domain masking not working
Posted: Fri Jul 21, 2023 5:24 pm
by BaconFries
What you are asking has nothing to do with the software in anyway. You will need to configure this via the server so that it will do a redirect to any and all requests of the specific domain or a subdomain of it to the other website you require. This is done generally with the use of a .htacess file on the server which your host/server should be able to assist with.
Re: site domain masking not working
Posted: Fri Jul 21, 2023 5:46 pm
by jerryco
You could setup a redirect on the index page on where you're coming from to your other.com but it will have to be hosted there.
Re: site domain masking not working
Posted: Fri Jul 21, 2023 6:36 pm
by keydog
ok
just goit off the phone with hosting account
they are saying there are 3 different index file
index.php
index.js
index.css
they are saying the priority order the server looks for puts index.php at #16
they sent me this article
https://www.godaddy.com/help/what-file- ... name-16025
the domain is going to the index.js file first and displays just code in the browser
they said to ask if there is way to put the index.js and index.css files in a sub folder and still have it work
tried renaming the .js file but navigation stopped working (panel menu)
I have the page properties
file extention php
document type HTML5
not sure if that has any effect or not with this issue
Re: site domain masking not working
Posted: Fri Jul 21, 2023 6:45 pm
by keydog
just to reply to bacon fries, the tech support with the hosting company did try an htaccess file redirect
it came out showing the main domain / folder with site
Re: site domain masking not working
Posted: Fri Jul 21, 2023 6:57 pm
by BaconFries
ok
just goit off the phone with hosting account
they are saying there are 3 different index file
index.php
index.js
index.css
The index.php is required so no need to remove.
From the help:
Generate external JS file for page specific scripts.
Enable this option to generate a separate JS file with the script used by a page. The name of the file will be the same as the page name. So 'index.html' will generate a 'index.js' file
Uncheck this if this then generate a index.html then you will need to remove as you can only have one index page and as you have already have a index.php index.html is not required. ,Note although you can use the .php extension it is really only required if you have php code in the source such as a form
If you do not wish or need the css to be used as an external file then Go to Tools --> Options --> HTML and in the CSS section uncheck Generate external CSS style sheets for page specific styles.
Finally you will need to republish to take affect.
Re: site domain masking not working
Posted: Fri Jul 21, 2023 7:03 pm
by keydog
great going to try that now
in that same options section there is a check box for "generate external JS file for page specific scripts"
should that be unchecked also
will this cause element to not work
because I tried to rename the .js file on the server and the panel menu stopped working
but all els was ok as far as function
Re: site domain masking not working
Posted: Fri Jul 21, 2023 7:30 pm
by keydog
sorry I wrote the wrong file name in last post
I meant the .css file
Re: site domain masking not working
Posted: Fri Jul 21, 2023 7:43 pm
by keydog
that did it and everything is still working
no index.js file on server
thanks bacon fries, you have helped me with this stuff secveral times in the past
http://thekeyshoponline.com/index.php
Re: site domain masking not working
Posted: Fri Jul 21, 2023 7:52 pm
by onlye
this might work? - change the order of the index files that are used by adding a line to the .htacess file
DirectoryIndex index.html index.php
https://www.hostinger.com/tutorials/cha ... toryindex
Re: site domain masking not working
Posted: Fri Jul 21, 2023 8:05 pm
by keydog
thank you for the help
the issue bacon fries suggested worked so Im leaving well enough alone