deansatch Posted February 11, 2009 Share Posted February 11, 2009 I have a site where 2 domains are mapped to the same hosting account. e.g. domain.co.uk & dom-ain.co.uk. When a user lands on the site ad domain.co.uk and clicks "add to cart" they then start a session. But if they are redirected to dom-ain.co.uk, the session is lost. Is there a way to keep it on both? Or is there a way (search engine friendly) to make only one of these domains usable. I could do a 301 redirect on one of the domains so that the site is only viewable with one domain, but will I be penalised by google for redirecting the domain? Link to comment https://forums.phpfreaks.com/topic/144762-2-domains-1-session/ Share on other sites More sharing options...
rhodesa Posted February 11, 2009 Share Posted February 11, 2009 You should force all traffic to one domain. It should actually boost you on Google, since it sees it as two different sites with half the traffic. Putting them together will show Google your true traffic. Link to comment https://forums.phpfreaks.com/topic/144762-2-domains-1-session/#findComment-759628 Share on other sites More sharing options...
deansatch Posted February 11, 2009 Author Share Posted February 11, 2009 Thanks McGyver! Is a 301 redirect the best way to do that? Link to comment https://forums.phpfreaks.com/topic/144762-2-domains-1-session/#findComment-759652 Share on other sites More sharing options...
redarrow Posted February 11, 2009 Share Posted February 11, 2009 Dont agree with the google seo thing sorry. far as i am aware number off times a page is used on a search engine, does not get you higher page rank. i think it best you use session's on a database it safer and it better. you can also use cookies with sessions that way no need for the database sessions as well. but cross platform web sites,i suggest a database for the sessions. Link to comment https://forums.phpfreaks.com/topic/144762-2-domains-1-session/#findComment-759659 Share on other sites More sharing options...
rhodesa Posted February 11, 2009 Share Posted February 11, 2009 Dont agree with the google seo thing sorry. far as i am aware number off times a page is used on a search engine, does not get you higher page rank. i think it best you use session's on a database it safer and it better. you can also use cookies with sessions that way no need for the database sessions as well. but cross platform web sites,i suggest a database for the sessions. you could very well be right...i am no SEO expert...it just seemed to make sense in my head...don't you get "google points" for instance if a sites refer to you? so if sites a & b refer to one domain and sites c & d refer to your other domain, wouldn't it be better to have all 4 sites refer to the same domain? Link to comment https://forums.phpfreaks.com/topic/144762-2-domains-1-session/#findComment-759666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.