Post by Dmitreach » Sat Jul 31, 2021 8:34 pm

Hello !

OpenCart 3.0.3.3 theme Ultrastore and Ocfilter

I'm trying to configure htaccess redirection to http://test.podarok-kamni.ru/
Problem with the INDEX

This is how redirection works - INDX

Code: Select all

RewriteCond %{QUERY_STRING} ^_route_=indx.php/cat/c706_Derevo-schastya.html$
RewriteRule ^(.*)$ derevja-schastja/derevya-schastya-iz-nefrita? [R=301,L]
But this is how redirection does not work - INDEX

Code: Select all

RewriteCond %{QUERY_STRING} ^_route_=index.php/cat/c706_Derevo-schastya.html$
RewriteRule ^(.*)$ derevja-schastja/derevya-schastya-iz-geliotropa? [R=301,L]
Please tell me what the problem may be , what to configure ?
with respect

Code: Select all

Options +FollowSymlinks
Options -Indexes

<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
</FilesMatch>

RewriteEngine On

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]

php_value upload_max_filesize 512M

php_value post_max_size 512M

php_flag display_errors on

RewriteCond %{QUERY_STRING} ^_route_=index.php/cat/c706_Derevo-schastya.html$
RewriteRule ^(.*)$ derevja-schastja/derevya-schastya-iz-geliotropa? [R=301,L]

RewriteCond %{QUERY_STRING} ^_route_=indx.php/cat/c706_Derevo-schastya.html$
RewriteRule ^(.*)$ derevja-schastja/derevya-schastya-iz-nefrita? [R=301,L]

Newbie

Posts

Joined
Mon Nov 30, 2020 1:15 am

Post by JNeuhoff » Sat Jul 31, 2021 11:04 pm

Replace

Code: Select all

RewriteCond %{QUERY_STRING} ^_route_=indx.php/cat/c706_Derevo-schastya.html$
with

Code: Select all

RewriteCond %{QUERY_STRING} ^_route_=index.php/cat/c706_Derevo-schastya.html$
?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Dmitreach » Sun Aug 01, 2021 12:24 am

Code: Select all

RewriteCond %{QUERY_STRING} ^_route_=index.php/cat/c706_Derevo-schastya.html$
?
it doesn't work
Where there is a word "index" - there is no redirection, if I write for example "indx", then the redirection will be
With Regard

Newbie

Posts

Joined
Mon Nov 30, 2020 1:15 am

Post by Dmitreach » Sun Aug 08, 2021 4:05 pm

Code: Select all

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]


#  index.php/cat/c1398_Nasekomye.html - kulony-i-podveski/kulony-iz-yantarya-v-bronze-nasekomye
RewriteRule ^index.php/cat/c1398_Nasekomye.html$ derevja-schastja/derevya-schastya-iz-geliotropa1? [R=301,L]

# index.php?cat=1422 - kulony-i-podveski/kulony-poludragocennye-forma-obrabotannaya-biryuza
RewriteCond %{QUERY_STRING} ^cat=1422$
RewriteRule index.php$ kulony-i-podveski/kulony-poludragocennye-forma-obrabotannaya-biryuza? [R=301,L]

Newbie

Posts

Joined
Mon Nov 30, 2020 1:15 am
Who is online

Users browsing this forum: No registered users and 95 guests