[phpBB3] Disabling Magic SEO for Mobile Site

Custom URLs and redirections.

[phpBB3] Disabling Magic SEO for Mobile Site

Postby buchoman » Tue May 27, 2008 7:30 am

I hope to modify my phpBB3 forum to include a mobile site (all files are in my subdirectory called "/forum/mo/").

Trouble is that when I click on any link, Magic SEO's rewrite rules (contained in /.htaccess) cause a redirection so that other files in my "/forum/mo/" directory cannot be accessed.

For example:
The file:
"http://www.delica.ca/forum/mo/index.php?plat=html"

... gets rewritten by to:
"http://www.delica.ca/forum/index.php?plat=html"


Is there a simple rule that I can place at the beginning of my "forum/.htaccess" file that says "disregard all Rewrite Rules if (and only if) the URL link is within the "/forum/mo/" directory?

Thanks! :)
Mark
Buchoman (North Vancouver, Canada)
Delica Canada
buchoman
 
Posts: 3
Joined: Tue Feb 05, 2008 11:21 am

Re: [phpBB3] Disabling Magic SEO for Mobile Site

Postby ~J~ » Tue May 27, 2008 10:29 am

Please change the installation line to:

Code: Select all
if(!defined('ADMIN_START') && strpos($_SERVER['REQUEST_URI'], '/forum/mo/') === false) include($phpbb_root_path . 'includes/magic_seo_url.'.$phpEx);
~J~

Magic SEO URLs got new Home at InveoStore.com and are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
Magic SEO URL Founder
 
Posts: 1016
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe

Re: [phpBB3] Disabling Magic SEO for Mobile Site

Postby buchoman » Tue May 27, 2008 10:35 am

Brilliant! Works like a dream! Thanks for your prompt response Jiri! :D
Buchoman (North Vancouver, Canada)
Delica Canada
buchoman
 
Posts: 3
Joined: Tue Feb 05, 2008 11:21 am


Return to Custom Rewrite Rules

Who is online

Users browsing this forum: No registered users and 2 guests

cron