Originally Posted by
Mark_88
I'm having a problem getting SSU to work with a mobile website theme.. are there any .htaccess wizards around?
Currently SSU rewrites "index.php?main_page=" to a pretty URL. Everything is working fine with this.
The mobile theme I'm using sends all URLS to "mobile.php?main_page=". The problem is, SSU sends all mobile.php requests straight back to index.php, thus breaking the mobile theme.
I've changed SSU's configuration in the admin section of zen-cart with no results. I'm fairly sure the best option is to stop SSU from rewriting mobile.php requests altogether, does anyone know how I can configure this using .htaccess?
Unfortunately I'm "not allowed" to turn off SSU altogether, so any help would be greatly appreciated.
I figured out a solution, in case anyone is having this same problem.
In includes/functions/html_output.php change the SSU code to the following:
PHP Code:
//bof simple seo url
global $ssu;
if($_SERVER["PHP_SELF"] == '/index.php') {
if(is_object($ssu) && ($link = $ssu->ssu_link($page, $parameters, $connection, $add_session_id, $search_engine_safe, $static, $use_dir_ws_catalog))!= false) return $link;
}
//eof simple seo url
If you have Zen Cart installed in a subdirectory, edit the /index.php to read /YOUR_SUBDIRECTORY/index.php
This makes SSU work only on index.php pages. Your mobile template will use native Zen Cart urls.
Bookmarks