- Code: Select all
Options +FollowSymLinks
DirectoryIndex index.htm
RewriteEngine On
RewriteBase /myFolder
#
# Trailing slash check
# Don't fix direct file links
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/ [L,R=301]
#
# Finally, forward everything to your front-controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(main)/?$ home.php [L,NC]
RewriteRule ^(register)/?$ logreg.php [L,NC]
...
...
I also have
- Code: Select all
<a base='../' target='_self' />
in my header.
so going to webname.com/main/ shows the home.php page, great! I played with it a bit, and got all the images, javascript, and ajax to work as well. Here's the catch: In Opera, Chrome, and FireFox all my images and javascript/ajax work. In IE9 it will only show images with full (http://www.webname.com/images/pic.png). Images with relative paths dont show up.. But they do in the other browsers..
I deleted my cache, cookies, etc etc. Restarted the browser and the computer, and nothing. Can someone here offer some insight as to why this isn't working very well?