[CRE Loaded] SEO causing issue with javascript

Magic SEO URLs for CRE Loaded.
ebreaka
Posts: 12
Joined: Fri Apr 17, 2009 5:12 pm

Re: [CRE Loaded] SEO causing issue with javascript

Postby ebreaka » Thu Apr 30, 2009 2:04 pm

I also think the problem is coming from that stmenu.js i just have no ideas of how to fix that one... but if I take off the php code, and use only the include/.... the .js file is still loading on normal cre pages, only when the links are rewritten by magic, menu is not working anymore (.js not loaded)... and i have no more the non secure items problem...

without forgetting that ony IE is having this problem...

ebreaka
Posts: 12
Joined: Fri Apr 17, 2009 5:12 pm

Re: [CRE Loaded] SEO causing issue with javascript

Postby ebreaka » Fri May 01, 2009 4:06 pm

in my 404 error logs, here's a cue when using this code:

Code: Select all

<script type="text/javascript" src="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>templates/Original1_B2B/dhtml-menu/stmenu.js"></script>


/shop/en/boxing-28/the-accessories-33/training-accessories-78/accessories-103/templates/Original1_B2B/dhtml-menu/products-over.png

I have received 195 000 message errors 404, last 2 weeks with Magic SEO... Hope we can find a solution quickly...

ebreaka
Posts: 12
Joined: Fri Apr 17, 2009 5:12 pm

Re: [CRE Loaded] SEO causing issue with javascript

Postby ebreaka » Fri May 01, 2009 4:51 pm

ok

I got it fixed... I have added this code:

Code: Select all

<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>


to replace all my existing

Code: Select all

http://
links for my menu and now everything is working fine with https also... Menu and everything... I'm afraid I will still get few 404 related to bad image links coming from css... I'll check my logs to see what's next... I still have a present issue preventing IE to show my green EV SSL certificate, but the rest seems all fine...

thanks for your support about this issue!
Last edited by ebreaka on Fri Jun 05, 2009 10:48 am, edited 1 time in total.

ebreaka
Posts: 12
Joined: Fri Apr 17, 2009 5:12 pm

Re: [CRE Loaded] SEO causing issue with javascript

Postby ebreaka » Fri May 01, 2009 4:52 pm

~J~ wrote:Try to add to includes/header_tags.php file before this line:

Code: Select all

echo ' <meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET  . '">'."\n";


following code:

Code: Select all

echo ' <!--[if IE]></base><![endif]-->'."\n";



Should I reverse this ???

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

Re: [CRE Loaded] SEO causing issue with javascript

Postby inveo » Sat May 02, 2009 6:12 am

Basically yes you should.