Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

IE problem, how to stop trailing slash "/" on url of silverstripe site pages?


Reply


4 Posts   2037 Views

Avatar
TF-35Lightning

Community Member, 137 Posts

9 October 2010 at 7:50pm

Edited: 09/10/2010 7:52pm

Hi guys,

I have run into a painful issue with IE on a silverstripe site.
I am using the jcarousel plugin to load in some html content via AJAX and a PHP file.
http://sorgalla.com/projects/jcarousel/examples/dynamic_ajax.html

Now inside each html file that gets loaded in I have another plugin
http://keith-wood.name/countdown.html
(using layouts/ image based countdown timer)

Now in IE if I go to:
http://localhost/mysite/
http://localhost/mysite/mypage

the countdowntimer works loads and displays, but if I go to:

http://localhost/mysite/mypage/
http://localhost/mysite/mypage/anotherpage/
http://localhost/mysite/mypage/anotherpage

the countdowntimer DOESNT SHOW UP on the screen! It says that all the js files are there, but for whatever reason IE is not display this thing on these last 3 conditions!

My <% base_tag %> is:
<base href="http://localhost/mysite/">

My .htaccess is
### SILVERSTRIPE START ###
<Files *.ss>
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1
</Files>

<Files web.config>
   Order deny,allow
   Deny from all
</Files>

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /mysite

   RewriteCond %{REQUEST_URI} ^(.*)$
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
         
   
</IfModule>
### SILVERSTRIPE END ###

My setup loads fine in all other browsers safari, chrome, firefox and it doesnt matter if there is a trailing "/" or not.

If anyone knows anything, please let me know

Kind regards,

Avatar
TF-35Lightning

Community Member, 137 Posts

10 October 2010 at 2:50pm

looks like this guy has exact the same issue

http://www.silverstripe.org/general-questions/show/279506

Avatar
ttyl

Community Member, 114 Posts

13 October 2010 at 8:01am

all versions of IE or specific ones?

Avatar
TF-35Lightning

Community Member, 137 Posts

13 October 2010 at 2:09pm

Hello ttyl its all versions of IE but I am yet to test it in IE9.

Any idea why? (I did find I had a trailing "," in one line of code, but that didn't fix it.