Opencart admin login redirects to cart - opencart

I have a fresh install of opencart 1.5.5.1
When I access the admin, I get the login page, I login and get redirected to /admin/index.php?route=common/login which displays the homepage of the cart and not the admin panel.
How can I access the admin panel?

This happens if you try to log in and have a redirect in place to go from the non-www version to the www version of your domain (or vice-versa). If you have this, you will need to adjust your /admin/config.php to use the correct domain (ie so no redirect is necessary)

Check your admin htacess file!
In my case this was the problem.
So navigate here:
/admin
And search this file:
.htacess.txt
Remove txt and you be fine!

Related

django redirect to subdomain with exact same url

I have a Django website accessible at codewithbishal.com. This is basically a django blog website and all the blog articles are accessible at codewithbishal.com/example/<path>
But now I want to completely restructure the website{such that it is accessible at blog.codewithbishal.com/<path>} and I do no want to lose the current SEO therefore I want to configure django redirect such that when someone launches codewithbishal.com/example/<path> through google search search result or directly through link, they are redirected to blog.codewithbishal.com/<path> instead of a 404 page and eventually google will start showing the new links instead of old once.
Update: Should I configure redirect through apache .htaccess?
You can use the Django redirects app. Just click the link and find the guide.

OpenCart products links on home page are not pointing to correct url

I've started setting up opencart for my online store, everything was working correctly till yesterday, but now its showing some incorrect behavior. On main page I have some "featured" products , When a user click on it, it should navigate user to that product's page for details and url is something like following
http://mystore.com/index.php?route=product/product&path=57&product_id=49
but the url which is its navigating to is something like
http://mystore.com/iphone
hence its not navigating user to product's page and stays on same page (i.e. index page).
Also, I'm unable to login to my admin panel.
I guess I've done something wrong but can't track it. Any help would be highly appreciated.
Store url is this
Thanks
There is something very not alright with .htaccess file in the root folder of your site. Try to rename it back to .htaccess.txt .
OR
Rename .htaccess.txt to .htaccess. Looks like you have you turned on SEO setting in admin but it requires .htaccess file.
Although check if you have right url addresses in both config.php files, root and admin.

Edit approved email points to localhost

After approving a change in the Wagtail admin, the editor receives an email letting them know the page is published. The problem is the link to the page doesn't use the site domain, but localhost:
You can view the page here: http://localhost/learn/good-stuff-to-learn/
I have both BASE_URL and WAGTAILAPI_BASE_URL configured in my settings.py. Is there another setting I missed?
Django 1.11.10
Wagtail 1.13.1
Update the domain in the Wagtail admin, under Settings -> Sites.

How to redirect from the Django login page to a single page application?

I am building a SPA React application that is served by a single Django view at /. I am using Django's admin page for login.
If an unlogged in user navigates to /#/accounts/ the Django admin page will correctly them redirect to http://localhost:8000/admin/login/?next=/#/accounts/pp01/ for login. Once they log in, they get redirected to my Django view that is configured at the / url path.
The #/account/pp01 part of the redirect gets lost and the user gets redirected to the wrong part of my single page application (http://localhost:8000/#/). Does anyone know how to get this to work?
I don't understand why Django is cutting off the # part of the URL. Any insight would be appreciated. Thanks!
You need to encode the redirect path. As it is, your browser is thinking that it should go to '#/accounts/pp01/' on the path '/admin/login?next=/', rather than the hash being part of the redirect path itself.
You can use urllib.request.quote to quote the path.

Open Cart Administrator Login

Im using Open Cart version 1.4.9.2. I was host this and working more than 6 months. It was working perfectly without any problem.
Few days before i try to login to admin panel, when i try the admin url
http://vsports.lk/admin/
showing the same homepage. I couldnt get the admin login form page. I dont no whats went wrong.
My Home page URL http://vsports.lk/
Admin URL http://vsports.lk/admin/
Please if anyone can help on this...
Try It may be .htaccess issue.
http://www.vsports.lk/admin/index.php
Check the config.php under the admin folder
URL Like : http://website.url/admin