[SOLVED] Friendly URLs & Flash issue

03-13-08, 09:00 PM
|
 |
Code Master
|
|
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
[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."
|

03-13-08, 09:30 PM
|
 |
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
|

03-13-08, 09:48 PM
|
 |
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."
|

03-14-08, 03:18 AM
|
 |
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/")
|

03-14-08, 05:53 AM
|
 |
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
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...
__________________
"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."
|

03-14-08, 06:36 AM
|
 |
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
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."
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|