Pretty URl help

Alles, was den Apache betrifft, kann hier besprochen werden.

Pretty URl help

Postby minidawg » 24. June 2011 04:17

I have an htaccess file that is supposed to make some particular URL's look better. Here is my code

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 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 ( 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?
Posts: 1
Joined: 24. June 2011 04:15

Re: Pretty URl help

Postby Nobbie » 24. June 2011 10:19

1) This is the german forum.

2) Obviously, this is an IE9 problem, not an Apache problem.

3) You should look into access log and into error log of Apache in order to find out the differences in requests between IE9 and other browsers.
Posts: 11620
Joined: 09. March 2008 13:04

Return to Apache

Who is online

Users browsing this forum: No registered users and 20 guests