Jump to content

Website looks different in other directory

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
kwm

kwm

    Newbie

  • Members
  • PipPip
  • 11 posts
maybe I just have an awkward problem but I just can't find a solution..
First, I have 2 Pages with exactly the same source - one on localhost/dummy.html and another on localhost/ (the index).

My dummy.html works just fine as you can see here:
Posted Image

But on my index it looks like this:
Posted Image
(strange to say... it also has a scroll bar -> using this method)

It's all XHTML 1.1 and valid.. but on the wrong rendered page, Firefox thinks that some <meta> and <script> Tags are in the body:
Posted Image

My files are all in UTF-8 FYI.. and I think this is caused by the encoding:
Posted Image
(but this appears only on the broken page)

In case you think it might be a .htaccess error, convince yourself it's not:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?page=$1

And last but not least, my dummy.html works also in IE8! But I really don't want to bother you how the other one looks like in it (or in case you wonder)

Does someone have any idea, how this could be fixed?
-- one possible solution is to save all files in ANSI, but shouldn't it work also in utf mode as the dummy.html does?

Oh well and sorry if I write confusing.. it's not my native language :\

Edited by kwm, 19 November 2009 - 12:08 AM.


#2
nikhilkhullar

nikhilkhullar

    Newbie

  • Members
  • PipPip
  • 20 posts
Well, try saving all included JavaScript files and all other dependancies in UTF and then it will work. UTF and ANSI files do not work well together with many browsers.


Regards,
Nikhil Khullar


#3
kwm

kwm

    Newbie

  • Members
  • PipPip
  • 11 posts
Well... I guess it's the only working solution until world is ready for UTF-8.
Thanks anyway.