Hello, I use Opencart v 3.0.2.0 with electra theme and I want to change urls to friendly urls.
https://www.mr-tech.gr/index.php?route= ... on/sitemap --> https://www.mr-tech.gr/sitemap
Is there a free extension that can easily do this?
Thanks, you are right.. I went Design-->SEO Urls and I changed some urls but on my site still appears the index urls... For example --->
https://www.mr-tech.gr/index.php?route= ... on/sitemap I changed it to https://www.mr-tech.gr/sitemap but now there is still both of the links but I want only the second one... Maybe I have to change anything to .htaccess file?
Here is my .htaccess file --->
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*) https://www.mr-tech.gr%{REQUEST_URI} [R=301,L,NE]
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
https://www.mr-tech.gr/index.php?route= ... on/sitemap I changed it to https://www.mr-tech.gr/sitemap but now there is still both of the links but I want only the second one... Maybe I have to change anything to .htaccess file?
Here is my .htaccess file --->
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*) https://www.mr-tech.gr%{REQUEST_URI} [R=301,L,NE]
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
You have added on Design layout--Seo?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
I use a fix issue --> https://www.opencart.com/index.php?rout ... =55&page=2
and everything is fine now! I believe that OC v3.0.2.0 has a bug in seo_url.php!
Thanks for your support!
and everything is fine now! I believe that OC v3.0.2.0 has a bug in seo_url.php!
Thanks for your support!
Who is online
Users browsing this forum: No registered users and 12 guests