Style problem with relative paths

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators


Style problem with relative paths

Postby jeff_j_dunlap » Wed Apr 30, 2008 5:19 am

Dear forum members:

I am having some relative path problems in IE but not in Firefox. I created rewrite rules and I am able to navigate to any of the forums and topics without problems.

When I do go into a topic (using IE) the theme messes up. It seems that it cannot 'see' the css or the images because of the non-existent path (see 'boxing-forum' in the URLs below) that Advanced-SEO creates. The style is not based on prosilver :(

In IE:
-http://127.0.0.1/boxing-forum/Rodriguez-Marquez-Match-t4.html
(here's a bad image URL)
-http://127.0.0.1/boxing-forum/download/file.php?id=1

In Firefox:
-http://127.0.0.1/boxing-forum/Rodriguez-Marquez-Match-t4.html
(good image URL)
-http://127.0.0.1/download/file.php?id=1


This is pretty confusing to me.

1) Is Advanced SEO supposed to create absolute paths to my images and icons?
or
2) Am I supposed to set absolute paths to all images and icons?
or
3) Am I supposed to create a Regular Expression that removes the forum from the path (i.e. 'boxing-forum')?

Any suggestions welcome,

Jeff
jeff_j_dunlap
 
Posts: 21
Joined: Thu Mar 13, 2008 8:55 am

Advertisement

Postby jeff_j_dunlap » Wed Apr 30, 2008 5:49 am

Now that I've spent a few hours looking at this, I'm pretty sure that the answer for each of the 3 questions above is 'no'.

I'd like to also post an html (view source snippet) of the image files that are not appearing. Please note that the source is good:


<img src="./styles/Tranquility/imageset/en/button_topic_reply.gif" alt="Reply to topic" title="Reply to topic" />


<img src="./download/file.php?id=1&amp;sid=d5e58dec7c1c9f2e92a6ecb2fc8f9fc1" alt="0_61_Fighters_320.jpg" />



Choosing the properties for an image in Firefox CORRECTLY shows the URL as:
-http://127.0.0.1/download/file.php?id=1

Choosing the properties for an image in IE INCORRECTLY shows the URL as:
-http://127.0.0.1/boxing-forum/download/file.php?id=1

Very, very weird...it must be that I have some bad html somewhere else and firefox handles it and IE doesn't.
jeff_j_dunlap
 
Posts: 21
Joined: Thu Mar 13, 2008 8:55 am

Postby SeO » Wed Apr 30, 2008 9:51 am

Since it's a custom profile, make sure you implemented all the code changes required in it too. The one that is handling the paths is the {SEO_BASE_HREF} one.

That's how we deal with virtual folder, by assigning the physical path to the base href tag.

So, if it's working with FF and not with IE, it could be because of IE's cache in case you properly modded the style, try clearing it, IE could still be using the old code.
SeO
Admin
Admin
 
Posts: 6035
Joined: Wed Mar 15, 2006 9:41 pm

Postby jeff_j_dunlap » Wed Apr 30, 2008 2:49 pm

SeO wrote:Since it's a custom profile, make sure you implemented all the code changes required in it too. The one that is handling the paths is the {SEO_BASE_HREF} one.

That's how we deal with virtual folder, by assigning the physical path to the base href tag.

So, if it's working with FF and not with IE, it could be because of IE's cache in case you properly modded the style, try clearing it, IE could still be using the old code.


Dear SeO:

I appreciate your response. Please note that I have been including {SEO_BASE_HREF} which will correctly add:

<base href="http://127.0.0.1/"/>

I'm starting to think that IE is ignoring the <base> tag.

View Source Firefox:
<img src="./download/file.php?id=1" alt="Fighters.jpg" />

View Source IE:
<img src="./download/file.php?id=1" alt="Fighters.jpg" />


Here is the weird part. If you right mouse click on the image, you get the following path (which is different than the view source path):

Example path problem with images and icons in IE:
-http://127.0.0.1/boxing-forum/download/file.php?id=1

Good path for images and icons in Firefox:
-http://127.0.0.1/download/file.php?id=1

I have cleared all temp files and cookies but the same thing happens in IE.

Anyway, I just wanted to post this. If anyone has some suggestions I would appreciate it, and I'll post back with a solution if I am able to solve this. It may be possible that I have some corrupt html that is causing IE to mess up.
jeff_j_dunlap
 
Posts: 21
Joined: Thu Mar 13, 2008 8:55 am

Postby jeff_j_dunlap » Wed Apr 30, 2008 11:24 pm

Dear SeO:

My problem was that I butchered :shock: my php files. I basically went back and restored the files from the Advanced SEO directories and the problem was solved.

Best regards,

Jeff

P.S. The generated html really did look fine by the way, except that IE didn't like it of course. Looking at the response using WFetch, I noticed that it has some ascii characters prefixing the response. That is the only weird thing that I saw, and I guess that it happened by me messing up the PHP files.
jeff_j_dunlap
 
Posts: 21
Joined: Thu Mar 13, 2008 8:55 am

Postby SeO » Fri May 02, 2008 12:50 pm

You may just added some non utf-8 chars by mistake while editing some tpls and or language files. FF is a bit more flexible on this type of mistakes than IE.
SeO
Admin
Admin
 
Posts: 6035
Joined: Wed Mar 15, 2006 9:41 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: plut9 and 42 guests


 
cron