Post by Vasiliki T. » Wed Jan 23, 2019 4:42 am

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?

New member

Posts

Joined
Mon Mar 12, 2018 5:33 pm

Post by xxvirusxx » Wed Jan 23, 2019 3:42 pm

Go to Design-->SEO Url

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Vasiliki T. » Wed Jan 23, 2019 5:08 pm

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]

New member

Posts

Joined
Mon Mar 12, 2018 5:33 pm

Post by xxvirusxx » Wed Jan 23, 2019 7:07 pm

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Vasiliki T. » Wed Jan 23, 2019 7:19 pm

Yes of course I have added them!

New member

Posts

Joined
Mon Mar 12, 2018 5:33 pm

Post by Vasiliki T. » Thu Jan 24, 2019 6:18 pm

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!

New member

Posts

Joined
Mon Mar 12, 2018 5:33 pm
Who is online

Users browsing this forum: No registered users and 12 guests