I have a new OC 3.0.4 installed on Ubuntu 24.04 using Nginx. Shop works but I cant get friendly urls because I cant use .htaccess in Nginx. Is there someone who has changed the block file to added what is necessary to use friendly url with Nginx
Regards
Anders
Regards
Anders
Hello for everybody! When i receive message on the email, I can't answer! How i can find the email to sender to can answer to him?
Thank you in advance
Best regards
Thank you in advance
Best regards
danger wrote: ↑Fri May 06, 2016 7:17 amThis worked
It didn't at first because I had a duplicate location / { from before.Code: Select all
# SEO URL Settings # Nginx configuration of OC htaccess location = /sitemap.xml { rewrite ^(.*)$ /index.php?route=feed/google_sitemap break; } location = /googlebase.xml { rewrite ^(.*)$ /index.php?route=feed/google_base break; } location / { # This try_files directive is used to enable SEO-friendly URLs for OpenCart try_files $uri $uri/ @opencart; } location @opencart { rewrite ^/(.+)$ /index.php?_route_=$1 last; } # End SEO settings
sudo nginx -t is helpful![]()
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
my guess is that
Code: Select all
rewrite ^/(.+)$ /index.php?_route_=$1 last;
Code: Select all
rewrite ^/(.+)$ /index.php?_route_=$uri last;
It still 404 error in some pages! In which file i need put the code rewrite ^/(.+)$ /index.php?_route_=$uri last;
Thank you in advance! Best regards!
Thank you in advance! Best regards!
I am confused by your confusion.svtodsvtod wrote: ↑Fri Dec 20, 2024 4:58 pmIt still 404 error in some pages! In which file i need put the code rewrite ^/(.+)$ /index.php?_route_=$uri last;
Thank you in advance! Best regards!
You have been given nginx directions which you say do not solve all issues.
I gave a correction suggestion to those directions which you say also does not solve the issue for "some pages" which is also not helpful.
Then you ask where to put those directions which kind of puts me in the twilight zone.
So, I am confused.
Don't be confused , the issue here is that their are 2 OPs and one has problem with the Nginx and the other once has issue with the email.
So the person who is replying is for email and i would suggest
to open a new topic or search the forum first before opening a new topicsvtodsvtod
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
Who is online
Users browsing this forum: No registered users and 6 guests