Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 21st Feb 2012, 06:14 PM   #1
Active Warrior
 
Join Date: 2009
Posts: 60
Thanks: 2
Thanked 5 Times in 5 Posts
Default
Redirect allowing access to main site
Share on: 
fb share twitter share gplus share more share

I have a client for whom I did their mobile site, they have a fairly large main site and would like for the user to be able to access the information on their regular website if they choose. The issue is that they use a CMS that accesses a template for every page of their main site. I put a redirect code in the template and it does redirect to the mobile site, but I have no way to put a link to the main site without it simply redirecting back to the mobile. I have searched for solutions to this with no success, a couple things I found did not work. My concern is that even if I find a solution, because every page accesses the template, every page on their main site redirects to the mobile site, so I need some way for the user to go to their main site and stay on it if needed. I am a non-technical person so I am looking for an easy fix if possible. Thanks in advance.
jwpdad is offline  
Unread 21st Feb 2012, 06:27 PM   #2
Your Next Writer
War Room Member
 
bhuff85's Avatar
 
Join Date: 2008
Location: Iowa
Posts: 1,634
Thanks: 151
Thanked 462 Times in 256 Posts
Default
Re: Redirect allowing access to main site
Share on: 
fb share twitter share gplus share more share

How is the mobile site setup? If it is on a subdomain or another domain entirely, then all you would really need to do is include a link in the footer that reads Switch to Desktop Version (or something similar).

As long as the mobile site is on a subdomain or another domain entirely, including a link like this will allow them to access the regular site as normal.

Want to speed up your writing and save time?
This book will show you how:
--> Write Fast: 21 Powerful Ways to Cut Your Writing Time in Half! <--
bhuff85 is offline  
Unread 21st Feb 2012, 07:14 PM   #3
I Do Voice Over Work
War Room Member
 
rlhurst's Avatar
 
Join Date: 2011
Location: Oregon
Posts: 581
Thanks: 34
Thanked 129 Times in 96 Posts
Default
Re: Redirect allowing access to main site
Share on: 
fb share twitter share gplus share more share

Will provides a solution to accomplish this in his WSO. I just utilized it this past weekend, and it works great!

I do voice over work... here's a SAMPLE
rlhurst is offline  
Unread 21st Feb 2012, 07:38 PM   #4
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,271
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: Redirect allowing access to main site
Share on: 
fb share twitter share gplus share more share

you can deploy a cookie and configure your script not to redirect if the cookie is present, there are several ways you can do this, another post i responded to on here i figured you can even do that with a .htaccess file so in theory you wouldn't even need to mess around with the template...

let me know if you need more info

cheers,

jay

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
Unread 22nd Feb 2012, 01:20 AM   #5
You reap what you sow.
War Room Member
 
Nail Yener's Avatar
 
Join Date: 2008
Location: Sometimes you don't.
Posts: 1,078
Thanks: 196
Thanked 411 Times in 243 Posts
Default
Re: Redirect allowing access to main site
Share on: 
fb share twitter share gplus share more share

You are "a non-technical person" and I have no idea about the setup of this site, so any advice I will give here will be useless. Here is a JavaScript based redirection script you may find useful that allows switching between the mobile site and the full site:

Code:
http://www.sebastianoarmelibattana.com/projects/js-redirection
There are also other means of doing this (.htaccess, PHP, etc.) but nobody can give specific advice without knowing your site setup.
Nail Yener is offline  
Unread 22nd Feb 2012, 09:45 PM   #6
Active Warrior
 
Join Date: 2009
Posts: 60
Thanks: 2
Thanked 5 Times in 5 Posts
Default
Re: Redirect allowing access to main site
Share on: 
fb share twitter share gplus share more share

Thanks, I have had a couple people helping with this but I will go ahead and explain the setup the best I can and see if someone on here can suggest some ideas. I have done several mobile sites and installed redirects with no problem, and I have even done a couple that wanted access to the full site by making a copy of the homepage, titling it noredirect, and linking to that page which does not have the redirect code. Perhaps a crude way of doing it but it works, the main site owners know that if they update the homepage they have to make a new copy each time. I have not been able to do a similar thing this time.

This site uses a CMS called ExpressionEngine, every page is dynamically generated with templates. I am not the original webmaster, I have been given FTP access and access to the header template and some other templates, but not the entire site. The site is hosted with dreamhost so they do not have a file manager in their cpanel as others I have been more familiar with did. The files for the site are php files.

As I said I am not at all a techie type person, but I can follow instructions and install a script or whatever needs to be done as I have successfully before. I am just stuck here, I need to go ahead and get this done if possible. The client has been very patient and they are pleased with the work overall.

Thanks again in advance.

Originally Posted by Nail Yener View Post

You are "a non-technical person" and I have no idea about the setup of this site, so any advice I will give here will be useless. Here is a JavaScript based redirection script you may find useful that allows switching between the mobile site and the full site:

Code:
http://www.sebastianoarmelibattana.com/projects/js-redirection
There are also other means of doing this (.htaccess, PHP, etc.) but nobody can give specific advice without knowing your site setup.
jwpdad is offline  
Unread 14th Aug 2012, 03:14 AM   #7
Dave Zegers
War Room Member
 
Join Date: 2011
Location: The Hague
Posts: 559
Thanks: 229
Thanked 207 Times in 118 Posts
Default
Re: Redirect allowing access to main site
Share on: 
fb share twitter share gplus share more share

Originally Posted by jwpdad View Post

Thanks, I have had a couple people helping with this but I will go ahead and explain the setup the best I can and see if someone on here can suggest some ideas. I have done several mobile sites and installed redirects with no problem, and I have even done a couple that wanted access to the full site by making a copy of the homepage, titling it noredirect, and linking to that page which does not have the redirect code. Perhaps a crude way of doing it but it works, the main site owners know that if they update the homepage they have to make a new copy each time. I have not been able to do a similar thing this time.

This site uses a CMS called ExpressionEngine, every page is dynamically generated with templates. I am not the original webmaster, I have been given FTP access and access to the header template and some other templates, but not the entire site. The site is hosted with dreamhost so they do not have a file manager in their cpanel as others I have been more familiar with did. The files for the site are php files.

As I said I am not at all a techie type person, but I can follow instructions and install a script or whatever needs to be done as I have successfully before. I am just stuck here, I need to go ahead and get this done if possible. The client has been very patient and they are pleased with the work overall.

Thanks again in advance.

I know this is somewhat of a old post but i wonder if you came upwith a fix because i have the same problem as you had

Thanks

Dave
YellowGreenMedia is offline  
Closed Thread


Bookmarks

Tags
access, allowing, main, redirect, site


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:10 PM.