script to automatically redirect to...

User 2757890 Photo


Guest
6 posts

wow, don't how I got that in there. Thanks for the heads up.

Still doesn't seem to be working though. Not sure why, I'm just not knowledgeable enough to figure it out.

User 187934 Photo


Senior Advisor
20,266 posts
Online Now

Which of the coffeecup apps are you using to build your site?
http://validator.w3.org/check?uri=http% … 2Fservices

http://validator.w3.org/check?uri=http% … mp;group=0
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2757890 Photo


Guest
6 posts

Woah, I didn't realize I was in the forum of an app company! My sincere apologies. I just google my problem and it took me right to a post in this forum. I never used any of your apps yet, although I gotta say, you have some killer ones that I'm going to go investigate. The site/s I'm working on are older sites from Dreamweaver. I didn't realize the code I was using was more based on sites built with your apps.

I will bow my head and leave this thread to die.

Again, I'm sorry, I'll go check out some apps now.
User 187934 Photo


Senior Advisor
20,266 posts
Online Now

All is good but I was concerned about the number of errors on your pages as those can cause unforeseen issues.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2809571 Photo


Guest
1 post

Hello, after spending hours trying to make Eric Rohloff's code work, I finally succeeded. But it only worked when the two pages I linked were in the same domain folder. And I don't want my two pages to be in the same folder. Here is my example:

My mobile page is of the form: http://m.domain.com/index.html
and my desktop page is of the form: http://www.domain.com/index.html

Every time I click the link to the desktop version in http://m.domain.com/index.html, I get redirected to the mobile version.
The cookie created in http://m.domain.com/index.html doesn't seem to be accessed by http://www.domain.com/index.html

I've been trying to specify a path to the cookie and a domain. I tried all of these one by one and more:

$.cookie('redirect', '1', { expires: date }, { path: '/', domain: '.domain.com' } );
$.cookie('redirect', '1', { expires: date }, { path: '/', domain: 'domain.com' } );
$.cookie('redirect', '1', { expires: date }, { path: '/', domain: 'www.domain.com' } );

But it seems I'm just not getting it right.

Can anyone help ?

User 187934 Photo


Senior Advisor
20,266 posts
Online Now

Cookies and sessions aren't preserved across domains. This would be a huge security issue.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.