9th Jul 2012, 10:42 AM | #1 |
Warrior Member Join Date: 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
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.
|
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
|
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 |
| |
9th Jul 2012, 11:38 AM | #3 |
webstylecreator.com War Room Member Join Date: 2010 Location: Torino, Italy
Posts: 686
Thanks: 56
Thanked 68 Times in 46 Posts
|
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 |
| |
9th Jul 2012, 01:01 PM | #4 | |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
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! | ||
9th Jul 2012, 04:52 PM | #5 | |
Advanced Warrior Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
|
| |
| ||
9th Jul 2012, 08:53 PM | #6 | |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
| |
Sorry, I am too busy helping people to think of a cool signature! | ||
9th Jul 2012, 09:07 PM | #7 |
The Cave Man War Room Member Join Date: 2010
Posts: 334
Thanks: 59
Thanked 96 Times in 79 Posts
|
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.
| |
9th Jul 2012, 11:44 PM | #8 |
Advanced Warrior Join Date: 2008
Posts: 945
Thanks: 4
Thanked 24 Times in 24 Posts
|
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.
|
| |
10th Jul 2012, 08:34 AM | #9 |
Mobile+WP = JumpMobi.com War Room Member Join Date: 2009 Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
|
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! | |
Bookmarks |
Tags |
mobile, nonwordpress, redirect, site, url |
| |