Current location: Hot Scripts Forums » Other Discussions » Web Servers » [SOLVED] Friendly URLs & Flash issue


[SOLVED] Friendly URLs & Flash issue

Reply
  #1 (permalink)  
Old 03-13-08, 09:00 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Question [SOLVED] Friendly URLs & Flash issue

Hi

Im creating my site with a friendly url structure. Ive just about got it sorted and I realised that I needed to pin all images and css sheets to the root path which isnt a problem but when I load the page all graphic and css is fine but flash just doesnt want to load. If the page has the structure of www.site.com/thepage.php then the flash will load but if at any point there is anything added, even just a slash (/) then flash refuses to load.

Ive tried even changing the paths to the full http:// path but still it will not work if any friendly url is thrown in;

www.site.com/thepage.php (flash works)
www.site.com/thepage.php/ (flash fails)
www.site.com/thepage.php/category (flash fails)
www.site.com/thepage.php/category/ (flash fails)

PS I will be removing the .php eventually but at the moment the editor I use wont highlight my php code without the extension on. Its on my todo list

Thanks
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #2 (permalink)  
Old 03-13-08, 09:30 PM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
I dont understand what this has to do with php to be honest. It should really be in the Web servers forum since it seems to be to do with the .htaccess and mod_rewrite rather than php. A mod will move it with a bit of luck

Jay
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
  #3 (permalink)  
Old 03-13-08, 09:48 PM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Jay6390

BTW: The reason I posted it on .php is because Im looking for a php solution since my code is using php to write the friendly urls. If I posted it in the flash boards the solution would be- well dont put a "/" at the end of the address or even...whats PHP? this is a flash board. Im often confussed as to where I should post my topics because there isnt 1 topic that I need to cover its usually an issue with javascript thats created by php which comes from sql so Im now just going to the place where the most knowledge is, which is here. I dont want to get off topic....

I cant understand why I would need to write a mod_rewrite to correct the path of a flash file since the flash file is the only object on the page that doesnt work. Grx and CSS files all work from the same path as the flash. Im sure that someone on here has used the friendly url approach and found the same issues Im having with flash??

Thanks
Dal
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #4 (permalink)  
Old 03-14-08, 03:18 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Yeah, this belongs in "Web servers".

Anyway, it's probably one of the common mistakes people do when working with rewritten URLs. If you add a slash to the end, the browser treats the file as a sub directory of the directory where you're currently in. So your paths are probably incorrect now. Try using absolute paths instead. (Or go one back "../dir/")
Reply With Quote
  #5 (permalink)  
Old 03-14-08, 05:53 AM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Nico View Post
Yeah, this belongs in "Web servers".

Anyway, it's probably one of the common mistakes people do when working with rewritten URLs. If you add a slash to the end, the browser treats the file as a sub directory of the directory where you're currently in. So your paths are probably incorrect now. Try using absolute paths instead. (Or go one back "../dir/")
Nice reading...

Quote:
I wrote...

Ive tried even changing the paths to the full http:// path but still it will not work if any friendly url is thrown in;

www.site.com/thepage.php (flash works)
www.site.com/thepage.php/ (flash fails)
www.site.com/thepage.php/category (flash fails)
www.site.com/thepage.php/category/ (flash fails)
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
  #6 (permalink)  
Old 03-14-08, 06:36 AM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED]

I went back through my code and missed the path update on

HTML Code:
<script src="[PATH]/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
Doh!

It now works fine with or without / at the end might I add!
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
does dynamic flash image display consume bandwidth? janicefernandes Flash & ActionScript 1 12-29-07 08:38 AM
Flash Programmer wanted - Romania valheru Job Offers & Assistance 1 07-13-06 09:04 AM
flash issue in firefoxon php site - any assistance is appreciated kappler0 Flash & ActionScript 2 01-06-06 08:26 AM
friendly urls? conv fred.asp?id=100 into fred,100.htm trooperbill ASP 3 10-20-03 02:59 AM
ASP friendly urls trooperbill Script Requests 0 10-17-03 06:47 AM


All times are GMT -5. The time now is 01:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.