Elxis CMS Forum

Support => Technical support => Topic started by: Farhad Sakhaei on July 14, 2007, 12:32:42

Title: [SOLVED] Problem with enabling SEF URLs in IE6
Post by: Farhad Sakhaei on July 14, 2007, 12:32:42
hi friends...

i enabled Search Engine Friendly URLs in administration panel ... and i renamed htaccess.txt to .htacceess too

but after it , when i want to login through frontend page , internet explorer display me this error :
Internet Explorer cannot open the Internet site http:///....   Operation aborted

i checked this on 2 different servers but both of them have same problem ...
i checked this by firefox browser but there isn't any error in firefox and the page displayed...
i didn't check it in I.E. 7 , but most people are using I.E. 6 now

please check it , thanx
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: CREATIVE Options on July 14, 2007, 13:37:23
Check you .htacceess file & the error log.
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Farhad Sakhaei on July 14, 2007, 14:17:41
this is the apache access log :

Code: [Select]
"GET /index.php HTTP/1.1" 200 17155 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 2.0.50727)"
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: CREATIVE Options on July 14, 2007, 14:55:49
Not access log BUT error log.
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Farhad Sakhaei on July 14, 2007, 15:25:45
there isn't any error , i sayed that this problem is in internet explorer 6 , but there isn't any problem in firefox ...   :) ???
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: CREATIVE Options on July 14, 2007, 17:48:02
Check the published modules & the template for not compatible operations.

In FF with the "web developer" add-on, check for JS error.

And if you have an error with any browser you must have a logged error in the error_log file.
For this check with SSH or FTP access your Elxis root folder for the error_log file.
From the web hosting control panel check for the error log shortcut.

If you don't find any problem, and you want me to take a look, send me PM with access directions. Or ask for Official support from Eliasan & Datahell.

Elxis FAN.
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: datahell on July 14, 2007, 20:11:17
First press control+F5 in Explorer to be sure that is not a browser cache issue.
Check the contents of the .htaccess file. Are sef lines uncommented? You must have something like this in it:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

Check if the -f and -d lines exist and the RewriteBase directory. I suppose you have mod_rewrite in apache because with firefox it works. Is elxis in a subfolder on in your httpd root? Paste here the full explorer message, your absolute path and anything else you think we must know.
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Farhad Sakhaei on July 15, 2007, 11:38:37
i installed original elxis on the host from first without any change codes

i added this 2 lines in .htaccess for disable display errors and allow url fopen only:

php_flag display_errors off
php_flag allow_url_fopen off

and i uncomment RewriteBase / and set it to :

RewriteBase /elxis

because i installed elxis in /elxis directory

i set ftp access on elxis and i enabled it
you can check it
www.portalha.com/elxis/
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: datahell on July 15, 2007, 18:45:50
Place .htaccess in folder "/elxis" with
RewriteBase /elxis ( or "/" I dont remember the right value right now, see the apache manual).

Check in order not to have multiple .htaccess files with the same commands.
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Farhad Sakhaei on July 15, 2007, 19:15:01
i did all of this
i tested these :

RewriteBase /elxis/
RewriteBase /elxis
RewriteBase /

but the problem didn't solve
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Ivan Trebješanin on July 15, 2007, 19:40:28
Hi Farhad,

I have just tried the link you posted, and everything works just fine... I even tried IE5.5!!!
Every browser was rendering fine the SEF URL-s
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Farhad Sakhaei on July 15, 2007, 20:45:44
hi ivan,
no , the links are OK

try to login using frontend...
you cannot login with I.E 6 , but you can login through firefox
this happened when i enabled Search Engine Friendly URLs !!!
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Ivan Trebješanin on July 15, 2007, 21:38:00
Here's what happened: I CAN login from the frontend using IE6, but for some reason I cant see front page anymore! I have to use IE7 to log out before I can see the frontpage again. I believe there is some cookie related problem in IE6, because when I go to frontpage with IE7 I can see logout option. IE7 work ok. And all the browsers using Gecko engine (Opera, NS, FF...)
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: datahell on July 15, 2007, 21:50:23
Ok, here is the solution.

- Open your template's index.php file.
- Move this line: <?php mosShowHead(); ?> bellow meta tags.
- Save it. That's it!

Example of right syntax of template's index.php for compatibility with IE6:

<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mosConfig_live_site; ?>/templates/xxxxxx/css/template_css.css" rel="stylesheet" type="text/css"/>

Is problem solved?
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Ivan Trebješanin on July 15, 2007, 22:00:06
Nope! :(
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: datahell on July 15, 2007, 22:03:10
Hmm... this is strange. I tested the above with IE6 and the problem is solved to me. Ivan can you copy-paste here your template's <head>...</head> section? It is surely a matter of head tags.
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: Ivan Trebješanin on July 15, 2007, 22:12:09
Wait! It's working now!!! Everything is fine, just don't ask how  :D
Title: Re: problem with enabling Search Engine Friendly URLs
Post by: datahell on July 15, 2007, 22:32:24
Fine.
Now, call Bill Gates and tell him to use FireFox  8)
Title: Re: [SOLVED] Problem with enabling SEF URLs in IE6
Post by: Farhad Sakhaei on July 16, 2007, 09:03:43
yes , the problem solved , i hate I.E. 6 , it is a Big Bug Browser  ;D what a name !!!  :D
thank you my friends