Forum Moderators: phranque

Message Too Old, No Replies

.htaccess problem

.htaccess makes flash not work

         

Omtec

8:01 am on Aug 16, 2010 (gmt 0)

10+ Year Member



Hello,

I have a flash object on my website, now I was trying to get more user friendly url's so I used .htaccess file to change the url for me

.htaccess file
RewriteEngine on
RewriteRule portfolio/ index.php?page=portfolio
RewriteRule about/ index.php?page=about
RewriteRule contact/ index.php?page=contact


the code works great, besides the fact that my flash object stopped loading correctly.

this flash object only runs on the index page, where no rewrite is needed, maby I can add an exception of some sorts ?

any advice would be greatly appriciated!

edit: FIXED

g1smd

9:29 pm on Aug 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you link to the flash object using relative URLs, the addition of the trailing slash on your new URLs means the browser is looking inside a folder for the flash object and not in the root.

For pages, you should not use a trailing slash. A trailing slash signifies a folder.

Additionally, link to the flash object using a leading slash, and specify the full path to the file.

Optionally for page URLs, redirect requests with trailing slash such that a new request is made without trailing slash.