phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Style problem with relative paths

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
jeff_j_dunlap



Joined: 13 Mar 2008
Posts: 21

Style problem with relative pathsPosted: Wed Apr 30, 2008 5:19 am    Post subject: Style problem with relative paths

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 Sad

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
Back to top
jeff_j_dunlap



Joined: 13 Mar 2008
Posts: 21

Style problem with relative pathsPosted: Wed Apr 30, 2008 5:49 am    Post subject: Re: Style problem with relative paths

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.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3116

Style problem with relative pathsPosted: Wed Apr 30, 2008 9:51 am    Post subject: Re: Style problem with relative paths

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.

_________________
Back to top
jeff_j_dunlap



Joined: 13 Mar 2008
Posts: 21

Style problem with relative pathsPosted: Wed Apr 30, 2008 2:49 pm    Post subject: Re: Style problem with relative paths

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.
Back to top
jeff_j_dunlap



Joined: 13 Mar 2008
Posts: 21

Style problem with relative pathsPosted: Wed Apr 30, 2008 11:24 pm    Post subject: Re: Style problem with relative paths

Dear SeO:

My problem was that I butchered Shocked 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.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3116

Style problem with relative pathsPosted: Fri May 02, 2008 12:50 pm    Post subject: Re: Style problem with relative paths

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.

_________________
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: