When I try to access my admin (http://www.yoursite.com/admin), because of the SEO being switched on it takes me to a page unavailable on the website...
I can change the .htaccess file to .htaccess.txt and it lets me on but I dont want to be changing that every time I need to log onto admin.
Is there a way around this?
Many Thanks
Jonty.
I can change the .htaccess file to .htaccess.txt and it lets me on but I dont want to be changing that every time I need to log onto admin.
Is there a way around this?
Many Thanks
Jonty.
SEO urls should not affect loging in to admin. So it is an issue with your set up, not opencart seo urls.
You should check the config.php file in yout admin folder and see if you have the correct paths set up.
You should also check any new code you have added to the .htaccess file as this could be causing the error.
You should check the config.php file in yout admin folder and see if you have the correct paths set up.
You should also check any new code you have added to the .htaccess file as this could be causing the error.
Thanks for the reply SXGuy,
Ive had a look at my config.php in admin... all looks fine with the .com/admin looking correct...
Ive not touched the .htaccess other than to rename it to .htaccess.txt
Im still experiencing the issue when I attempt to access the admin section. Its just taking to a page not found on the website...
Any further suggestions would be much appreciated.
Thanks
Ive had a look at my config.php in admin... all looks fine with the .com/admin looking correct...
Ive not touched the .htaccess other than to rename it to .htaccess.txt
Im still experiencing the issue when I attempt to access the admin section. Its just taking to a page not found on the website...
Any further suggestions would be much appreciated.
Thanks
Im still experiencing this problem... has anyone got any further suggestions?
SXGuy could you tell me what the correct path should look like in the config.php file?
Thanks Guys
SXGuy could you tell me what the correct path should look like in the config.php file?
Thanks Guys
two config.php files, one is in your root folder, main domain name path, the other is in /admin.
Other than that, i have no idea why you can not access your admin, but i do know, it is not a seo problem.
You should also make sure you are using the standard .htaccess file that comes with opencart, and not some heavy modified version
Other than that, i have no idea why you can not access your admin, but i do know, it is not a seo problem.
You should also make sure you are using the standard .htaccess file that comes with opencart, and not some heavy modified version
could you advise me on a some code to add to my .htaccess file for it to potentially work?
Thanks for all your help so far..
Thanks for all your help so far..
Code: Select all
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
# 2. In your opencart directory rename htaccess.txt to .htaccess
# For any support issues please visit: http://www.opencart.com
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log|txt)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling, then restore the # as this means your host doesn't allow that.
# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off
# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off
I tried the code you supplied me with and this didn't change anything.
I do have a password protect on my .htaccess file
I have removed some code from the admin .htaccess file that was directing to a .htpasswd file on my local directory.
so it now reads like this... is this ok?
This seems to have solved my problems...
One more quick question, do i actually need to password protect my .htaccess file?
SXGuy you've been a great help... thanks
I do have a password protect on my .htaccess file
I have removed some code from the admin .htaccess file that was directing to a .htpasswd file on my local directory.
so it now reads like this... is this ok?
Code: Select all
AuthType Basic
AuthName "admin"
One more quick question, do i actually need to password protect my .htaccess file?
SXGuy you've been a great help... thanks
no, you dont really need to password protect anything.
If you are worried, you can create a robots.txt file and deny page crawling to your admin area, you can also change the name of your admin folder to something else if you wished, providing the config.php files point to the new folder name.
If you are worried, you can create a robots.txt file and deny page crawling to your admin area, you can also change the name of your admin folder to something else if you wished, providing the config.php files point to the new folder name.
Why not rename admin to backoffice?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
I had the exactly same issue on with my site. That happened when I password-protected my admin folder. I took the protection out and my problem solved.
Trying to password protect your admin folder using cpanel (adding an .htaccess file under admin folder) makes you get "page not found" error.
It may be solved by adding the following line into the .htaccess file in the admin folder.
It may be solved by adding the following line into the .htaccess file in the admin folder.
Code: Select all
RewriteEngine Off
emreyuce.com | datekiss.com | tamsepetlik.com | undobilisim.com
This didn't work....amboss wrote:Trying to password protect your admin folder using cpanel (adding an .htaccess file under admin folder) makes you get "page not found" error.
It may be solved by adding the following line into the .htaccess file in the admin folder.
Code: Select all
RewriteEngine Off
Sorry for bringing this old thread up, but after searching everything, I am still getting this same error as OP.
I know it's something really simple, but can't get it to work.
Having the exact problem as this thread indicates:
-using friendly seo's, everything working fine
-add htaccess either through cPanel OR manually, nets me the same results:
The page you requested cannot be found!
Please help?
Version 1.5.3.1 with a purchased theme.
Thanks.
Hi,
I also have this issue.
I understand it only occours if the folder is password protected via htaccess file.
The issue is I have a couple of other folders I need to password protect, including admin folder.
And with seo enabled on opencart I cant manage to access them.
Is there any way to over come this?
In the htaccess file that would file to protected I have tryed suggestions obeve, but diddent work:
RewriteEngine Off
AuthName "Go Away"
AuthUserFile "/home/***/.htpasswds/public_html/admin/passwd"
AuthType Basic
require valid-user
Any help is much appreciated.
Thanks
I also have this issue.
I understand it only occours if the folder is password protected via htaccess file.
The issue is I have a couple of other folders I need to password protect, including admin folder.
And with seo enabled on opencart I cant manage to access them.
Is there any way to over come this?
In the htaccess file that would file to protected I have tryed suggestions obeve, but diddent work:
RewriteEngine Off
AuthName "Go Away"
AuthUserFile "/home/***/.htpasswds/public_html/admin/passwd"
AuthType Basic
require valid-user
Any help is much appreciated.
Thanks
This issue, (like so many others) seems to have been around for awhile. Would someone please put up a detailed *SOLVED* post, if that's the case?
Thank you!
Thank you!
Big Len
https://BigLensCycles.com
Quality Motorcycle ATV and UTV Parts & Accessories - Discount Prices
Who is online
Users browsing this forum: No registered users and 11 guests