Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 9th Jul 2012, 10:42 AM   #1
Warrior Member
 
Join Date: 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

Is there a way I can redirect any site to a mobile version (say I have an alternate URL for my mobile site) inside of my FTP Client? I can get plugins on WordPress that will do it for me, but I'd really like a way I can do it inside of an FTP Client so it will work for all my non WordPress sites.
Corpsealanche is offline  
Unread 9th Jul 2012, 11:17 AM   #2
HyperActive Warrior
 
Join Date: 2008
Location: Toronto, ON
Posts: 108
Thanks: 11
Thanked 14 Times in 13 Posts
Default
Re: Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

In order to redirect a site, you need to have access to the site's current hosting account (log in details).

With the log in details in hand, you can add the account to your FTP client, and therefore be able to place the necessary redirect code in all pertaining files.

To redirect a non-WordPress website to the mobile version, you simply need to add the redirect code. You can find a bunch of redirect scripts in the forum.

Hope this helps,
John

JohnE is offline  
Unread 9th Jul 2012, 11:38 AM   #3
webstylecreator.com
War Room Member
 
MagicAce's Avatar
 
Join Date: 2010
Location: Torino, Italy
Posts: 686
Thanks: 56
Thanked 68 Times in 46 Posts
Default
Re: Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

Also for wordpress sites you can add the redirect script using FTP in the header.php file from your wordpress/wp-content/themes/curenttheme

currenttheme being the folder for the theme that is activated on the site.

Regards, Marian

MagicAce is offline  
Unread 9th Jul 2012, 01:01 PM   #4
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Corpsealanche View Post

Is there a way I can redirect any site to a mobile version (say I have an alternate URL for my mobile site) inside of my FTP Client? I can get plugins on WordPress that will do it for me, but I'd really like a way I can do it inside of an FTP Client so it will work for all my non WordPress sites.
if you are not wanting to modify any other files you could add a custom .HTACCESS file that does the detect and redirect, whilst an incorrectly configured .HTACCESS file can literally bring a site to its knees if its done properly its probably the easiest simplest way to implement a redirect on a standard html site other than having to edit every single page and inserting redirect code.

Another plus side to doing it with a .HTACCESS file is that the Google Mobile Bot should also pick up on it too.

Cheers

jay

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
Unread 9th Jul 2012, 04:52 PM   #5
Advanced Warrior
 
Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
Default
Re: Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Jay Moreno View Post

if you are not wanting to modify any other files you could add a custom .HTACCESS file that does the detect and redirect, whilst an incorrectly configured .HTACCESS file can literally bring a site to its knees if its done properly its probably the easiest simplest way to implement a redirect on a standard html site other than having to edit every single page and inserting redirect code.

Another plus side to doing it with a .HTACCESS file is that the Google Mobile Bot should also pick up on it too.

Cheers

jay
Do we actually need to do a .HTACCESS file if we want to redirect a html site to mobile because I was watching WillR's video for doing a redirect for an html site and all that was needed was to paste a few lines of code in a couple sections of the index.html. There was no need to go into each page of the site and put in the redirect code.

mrtrance is offline  
Unread 9th Jul 2012, 08:53 PM   #6
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

Originally Posted by mrtrance View Post

Do we actually need to do a .HTACCESS file if we want to redirect a html site to mobile because I was watching WillR's video for doing a redirect for an html site and all that was needed was to paste a few lines of code in a couple sections of the index.html. There was no need to go into each page of the site and put in the redirect code.
from what your saying it sounds like the only page that would redirect would be the index page - am not 100% sure how that configuration would enable the other pages to redirect as well...

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
Unread 9th Jul 2012, 09:07 PM   #7
The Cave Man
War Room Member
 
JagSEO's Avatar
 
Join Date: 2010
Posts: 334
Thanks: 59
Thanked 96 Times in 79 Posts
Default
Re: Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

You can do that with WillR's mobile redirect script by putting the code in the header.

You can also do the .htaccess by putting some code

Which ever way you liked it to be done, it's gonna work.

Hooked To Success -Personal development For People Who Wants Success.
JagSEO is offline  
Unread 9th Jul 2012, 11:44 PM   #8
Advanced Warrior
 
Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
Default
Re: Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

Originally Posted by JagSEO View Post

You can do that with WillR's mobile redirect script by putting the code in the header.

You can also do the .htaccess by putting some code

Which ever way you liked it to be done, it's gonna work.
Thanks for the clarification. That is what was shown in the video with the code being put in the header of the index file before the </head>. I believe that should be all that is needed to have the redirect work for all the pages on the mobile site.

mrtrance is offline  
Unread 10th Jul 2012, 08:34 AM   #9
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: Mobile Site URL Redirect For Non-Wordpress?
Share on: 
fb share twitter share gplus share more share

Originally Posted by mrtrance View Post

Thanks for the clarification. That is what was shown in the video with the code being put in the header of the index file before the </head>. I believe that should be all that is needed to have the redirect work for all the pages on the mobile site.
Check it to make sure - if it's a simple standard HTML file that doesn't sound right, if the header is a separate PHP header file used for inclusion in all PHP files than yes that makes sense, I don't doubt WillRs techniques but what your suggesting by putting a redirect script inside of the head tags of just your standard index.html file by all rights this would not mean the script would work site wide across all your other pages. To do this one way or another all the other files need to be able to include the redirect script unless your using a htaccess file.

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
Closed Thread


Bookmarks

Tags
mobile, nonwordpress, redirect, site, url


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 09:26 PM.