![]() |
.htaccess mobile redirection (Help!)
Hello guys,
I really hope someone here could help me with this problem. I need to add an exception to our mobile redirect rules, more precisely, I need to exclude a URL that contains a certain pattern from mobile redirection. How can I accomplish this? Part of my .htaccess file looks like this... Quote:
RewriteCond %{REQUEST_URI} !^/gallery/*$ |
Just use PHP and grab the code from here -> http://detectmobilebrowsers.com/
|
<IfModule mod_rewrite.c>
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> RewriteEngine On RewriteCond %{HTTP_USER_AGENT} "iphone|ipod|android" [NC] RewriteCond %{HTTP_HOST} !^m.bookofzeus.com RewriteRule ^(.*)$ http://yourwebsite.com [L,R=302] |
Code:
RewriteEngine On |
apache redirect to mobile
Code:
RewriteEngine On Quote:
to remove url from redirect Code:
#activate this rule to exclude a directory from redirects |
Big thx for the answers guys.
I'm working on this now, I'll let you know how it goes. :thumbsup |
Quote:
|
Quote:
Thanks man for pointing it out for me. I appreaciate it, hope this helps you too. ;) |
Quote:
|
Oh nice! thanks for that code!
|
All times are GMT -7. The time now is 06:22 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123