Jump to content

Unable to login to BO when generated .htaccess file


keyura

Recommended Posts

I generated .htaccess file and all was working well even thereafter.

THen again when I tried to login to the admin panel. I am being redirected to the url address like as below:
http://onedollarshop.freemoneyhome.com/admin/login.php?redirect=index.php'>http://onedollarshop.freemoneyhome.com/admin/login.php?redirect=index.php instead of
http://onedollarshop.freemoneyhome.com/admin/

Also when I input the username and password, I come back to the same page without any errors and I am asked to input the username and password again.

Please help me out.

Link to comment
Share on other sites

I have a strong feeling this is because of the .htaccess file

The file is as follows:

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [QSA,L,E]
RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [QSA,L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [QSA,L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

Link to comment
Share on other sites

Incorrect information in file: './freemone_prestash/ps_menu.frm'

     SELECT a.`id_menu`, a.`id_parent`, a.`id_item`, a.`type`, a.`level`, a.`ignore`, a.`logged`, a.`css`,  b.`title`, b.`link` 
     FROM `ps_menu` a 
     LEFT JOIN `ps_menu_lang` b ON (a.`id_menu` = b.`id_menu` AND b.`id_lang` = "1") 
     WHERE a.`id_parent` = "0" AND a.`active` = 1 
     ORDER BY a.`position` ASC




Now I get the above error when I try oepning my website. I even deleted the .htaccess file. Still it is showing the same error. Please follow the link in the signature to have a look at it yourself. Please HELP! It is really urgent.

Link to comment
Share on other sites

Ok. Now I discovered that in config.inc.php file

Instead of

/* Debug only */
ini_set('display_errors', 'on');
define('_PS_DEBUG_SQL_', false);



I had the following

/* Debug only */
ini_set('display_errors', 'on');
define('_PS_DEBUG_SQL_', True);



The problem solved is only for the FO i.e. Now anyone can access my site. But I am unable to still access the BO. Please help urgently.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...