[osCommerce] With $messageStack doesn't rewrite
Re: [osCommerce] With $messageStack doesn't rewrite
Re: [osCommerce] With $messageStack doesn't rewrite
when come this lines
Code: Select all
if ($error == true) {
$messageStack->add('login', TEXT_LOGIN_ERROR);
and goes to http://www.detectalia-italia.it/login.p ... on=process
(for example in the login.php file) seems that it cannot redraw the form 'login', as it is that cannot rewrite the file login.php with the action=proccess as an .html page.
in fact the same error used to appear with non_seo pages before I added the new rules to the .htaccess file and to html_output.php file.
do yo have any idea about it? is it possibile to rewrite action=process?
thank you very much for your patience.....
Re: [osCommerce] With $messageStack doesn't rewrite
I've definitively understood that the problem is in login.php file.
when
Code: Select all
if ($error == true) {
$messageStack->add('login', TEXT_LOGIN_ERROR);
and then
Code: Select all
<?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', '', true); ?>
it cannot rewrite FILENAME_LOGIN as a html page and it doesn't reconize the language.
any idea please?
thank you
riccardo
Re: [osCommerce] With $messageStack doesn't rewrite
Re: [osCommerce] With $messageStack doesn't rewrite
Code: Select all
#login.php - login
RewriteRule ^([a-z]{2})/account/login\.html$ login.php?language=$1 [L,QSA]
It seems that rewrites the login.php Url....
Re: [osCommerce] With $messageStack doesn't rewrite
Re: [osCommerce] With $messageStack doesn't rewrite
and is not possible to somehow rewrite the query string?
Re: [osCommerce] With $messageStack doesn't rewrite
Re: [osCommerce] With $messageStack doesn't rewrite
I've renamed the login.php as login_seo.php and I've change the .htaccess rewriting rule.
of course I've also changed the login.php like this
addded:
Code: Select all
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN_SEO);
and changed:
Code: Select all
<?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', '', true); ?>
to
Code: Select all
<?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN_SEO, 'action=process', 'SSL'), 'post', '', true); ?>.
I added the new file in includes/filenames. php and I added the login_seo.php in includes/language/italian (or whatever language is set up).
I've also changed the html_output.php file adding:
Code: Select all
$customepages_non_seo[25] = "login_seo.php" ;
and
Code: Select all
$customepages_yes_seo[25] = "login.html" ;
as written this forum.
and.... IT WORKS!!
check it here if you want:
http://www.detectalia-italia.it/it/logi ... on=process
so think that the problem is due to the rewrite rules of login.php....
what you think? I know that isn't an elegant solution, maybe this cuold help you to find a more "elegant" one than mine...