dual content and .html file extensions
Posted: Fri Jul 02, 2021 12:48 pm
Ok knew id be back soon with more problems:
Problem1: i use nibbler to do a site test, it reported i was showing dual content with and without the www.
Solution1 Contact my hosting, they put in a redirect in the htqcess, issue solved.
Problem 2, reported that i should try not to have my pages showing .html extensions
Solution 2, Contact hosting, they changed some code in the htacess file, problem solved.
NOW, this is where the problem starts,
because i cant' get a responsive site to look how i want i have 2 versions of my site. There is code in my full width site to skip to mobile version when it detects the screen size.
the updated htacess file seem to interrupt the script in my skip to mobile redirect. the only way i can get my mobile site back is to move the htacces file out of my main public html folder. And then i loose problems 1 and 2 as listed above.
Here is what there technical support came back with:
When .htaccess moved to the public_html folder it interferes with one of your scripts as per below:
Issue now is this command isn't being read:
<script>
if (document.location.search.indexOf("skipmobile") >= 0) {
document.cookie = "skipmobile=1";
}
else if ((document.location.hostname.match(/\.mobi$/) || screen.width < 699)
&& document.cookie.indexOf("skipmobile") == -1)
{
document.location = "mobile/";
Unfortunately, we'll not be able to assist you with the codes please contact your developer to rectify this issue why .htaccess interfering with your script/code.
Any Ideas
Jonny
divingincyprus.net
Problem1: i use nibbler to do a site test, it reported i was showing dual content with and without the www.
Solution1 Contact my hosting, they put in a redirect in the htqcess, issue solved.
Problem 2, reported that i should try not to have my pages showing .html extensions
Solution 2, Contact hosting, they changed some code in the htacess file, problem solved.
NOW, this is where the problem starts,
because i cant' get a responsive site to look how i want i have 2 versions of my site. There is code in my full width site to skip to mobile version when it detects the screen size.
the updated htacess file seem to interrupt the script in my skip to mobile redirect. the only way i can get my mobile site back is to move the htacces file out of my main public html folder. And then i loose problems 1 and 2 as listed above.
Here is what there technical support came back with:
When .htaccess moved to the public_html folder it interferes with one of your scripts as per below:
Issue now is this command isn't being read:
<script>
if (document.location.search.indexOf("skipmobile") >= 0) {
document.cookie = "skipmobile=1";
}
else if ((document.location.hostname.match(/\.mobi$/) || screen.width < 699)
&& document.cookie.indexOf("skipmobile") == -1)
{
document.location = "mobile/";
Unfortunately, we'll not be able to assist you with the codes please contact your developer to rectify this issue why .htaccess interfering with your script/code.
Any Ideas
Jonny
divingincyprus.net