Forum Moderators: phranque

Message Too Old, No Replies

rewrite file to example.com/media.swf

         

nservices

5:49 pm on Jun 9, 2009 (gmt 0)

10+ Year Member



Hi,
i have website with many directory and sub-directory's
and in my header.phtml i have link to media.swf
and its work only i am in the root
and am go to some directory or sub-directory
its search the media.swf in this directory even that i create src="http://mydomain.com/media.swf" and not just src="media.swf"

can i make some htaccess rewrite that call media.swf from root directory, no care where am in the website ?

Best Regards,
Nservices.

jdMorgan

6:39 pm on Jun 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> it's [looking for] the media.swf in this [sub]directory even [when I link to] src="http://example.com/media.swf" and not just src="media.swf"

This should not happen, unless your browser is badly-broken. That is not likely.

It is the browser that resolves full URLs from page-relative or root-relative URL-paths.

Therefore, I suggest that you completely flush your browser cache (delete all Temporary Internet Files) and test again.

You should be able to use either

src="http://example.com/media.swf"
or
src[b]="/m[/b]edia.swf"

with any browser.

Jim

[edited by: jdMorgan at 6:39 pm (utc) on June 9, 2009]

nservices

6:53 pm on Jun 9, 2009 (gmt 0)

10+ Year Member



Thanks!