[phpBB3] Disabling Magic SEO for Mobile Site

Custom URLs and redirections.

[phpBB3] Disabling Magic SEO for Mobile Site

Postby buchoman on Tue May 27, 2008 12:30 pm

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 4:21 pm

Re: [phpBB3] Disabling Magic SEO for Mobile Site

Postby ~J~ on Tue May 27, 2008 3:29 pm

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~ | [Product manager]
Magic SEO URL - The definitive SEO Enhancement
~J~
Magic SEO URL Founder
 
Posts: 249
Joined: Sat Feb 02, 2008 4:07 pm
Location: Prague, Czech Republic

Re: [phpBB3] Disabling Magic SEO for Mobile Site

Postby buchoman on Tue May 27, 2008 3:35 pm

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 4:21 pm


Return to Custom Rewrite Rules

Who is online

Users browsing this forum: No registered users and 0 guests

cron