Problem I have is I previously installed a redirect code to detect mobile device, now I would like to remove it but don't know what to use in it's place. think the code was installed in the #htaccess file. Everything I try stops the site from loading in a mobile device. Can you help me remove this code and give me a code to replace it with if I need one? Thank you Enrique
What code do you have installed or explain your query in detail, we can not understanding your problem.
Here is my htaccess file content it is redirecting my site to a mobile website called m.warsawcityguide.com I used this redirect code in a previous installation of another theme. I uninstalled the old theme and installed your GeoCraft Wordpress Theme, but the redirect code remains in the htaccess file. >>>> #### BEGIN GoMobi Redirect Settings #### ####################################################################################### # This .htaccess file redirects mobile browsers and devices to an alternate destination # # Authors: Ronan Cremin, dotMobi # Ruadhan O'Donoghue, dotMobi # Copyright 2012, dotMobi # ####################################################################################### # Ensure rewriting is on RewriteEngine On # Check for redirect param RewriteCond %{QUERY_STRING} ^.*redirect=true.* RewriteRule ^(.*)$ - [co=gomobi_prevent_redirect:false:.desktopsite.com:0:/] RewriteCond %{QUERY_STRING} ^.*redirect=false.* RewriteRule ^(.*)$ - [co=gomobi_prevent_redirect:true:.desktopsite.com:7200:/] RewriteCond %{HTTP_COOKIE} !gomobi_prevent_redirect=true [OR] RewriteCond %{QUERY_STRING} ^.*redirect=true.* # Don't redirect if its false RewriteCond %{QUERY_STRING} !^.*redirect=false.* # Prevent loops # RewriteCond %{HTTP_HOST} !^m.warsawcityguide.com$ # Exclude certain paths e.g. cpanel admin etc. RewriteCond %{REQUEST_URI} !(.*)cpanel(/?)$ # Switch based on significant accept headers RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml\+xml" [NC,OR] # Specific devices/mandufacturers RewriteCond %{HTTP_USER_AGENT} "iphone|ipad|ipod|android|nokia|ios|opera m(ob|in)i|iemobile|symbian|samsung|sec-|htc|huawei|ericsson|sonyericsson|blackberry|motorola|sagem|kyocera|zte|kddi|docomo|j-phone|kwc|lenovo|lg|mot|softbank|nec|audiovox|alcatel|sharp|sie-|sanyo|sendo|amoi|xda|bird|benq|palm|pantech|panasonic|fly|asus-|baiduispider|googlebot-mobile|nintendo|psp|dalvik|windows ce|foma|brew|webos|fennec|netfront|teleca|obigo|vodafone|up.browser|portalmmm" [NC] RewriteRule ^(.*)$ http://m.warsawcityguide.com [L,R=302] #### END GoMobi Redirect Settings #### # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress <<<<<<< My question is if I delete the file what do I replace it with, does your theme use this file for anything? Enrique
Apparently your theme does use the htaccess file for something because when I deleted the code and left it empty page on my site gave me an error 404 page. is there some thing I need in there or deleting the file completely gives the same error. Thanks and sorry for the trouble. Enrique
Apparently your theme does use the htaccess file for something because when I deleted the code and left it empty page on my site gave me an error 404 page. is there some thing I need in there or deleting the file completely gives the same error. Thanks and sorry for the trouble. Enrique