[phpBB3] Disabling Magic SEO for Mobile Site

Custom URLs and redirections.
buchoman
Posts: 3
Joined: Tue Feb 05, 2008 12:21 pm

[phpBB3] Disabling Magic SEO for Mobile Site

Postby buchoman » Tue May 27, 2008 8: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
Magic SEO URLs for phpBB3

inveo
Inveo Support
Posts: 1273
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [phpBB3] Disabling Magic SEO for Mobile Site

Postby inveo » Tue May 27, 2008 11: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);

buchoman
Posts: 3
Joined: Tue Feb 05, 2008 12:21 pm

Re: [phpBB3] Disabling Magic SEO for Mobile Site

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

Brilliant! Works like a dream! Thanks for your prompt response Jiri! :D
Buchoman (North Vancouver, Canada)
Delica Canada


Return to “Custom Rewrite Rules”

Who is online

Users browsing this forum: No registered users and 0 guests