I am doing a redirect from another website to a page of my online store.
www.URL1.com/ve I redirect it to www.URL2.com/page-name
The URL2 is the web page with opencart (3.0.3.6)
The problem is that opencart agree a code at the end and gives a 404 error
I have the url www.URL2.com/page-name?_route_=ve
How do I remove that code that agree at the end?
www.URL1.com/ve I redirect it to www.URL2.com/page-name
The URL2 is the web page with opencart (3.0.3.6)
The problem is that opencart agree a code at the end and gives a 404 error
I have the url www.URL2.com/page-name?_route_=ve
How do I remove that code that agree at the end?
Error logs, more info is needed. As to know where to manage the Checkout Agreement Form feature, it can be done from your OC admin > systems > settings - > edit settings page.reginamor wrote: ↑Thu Jan 28, 2021 12:31 amI am doing a redirect from another website to a page of my online store.
www.URL1.com/ve I redirect it to www.URL2.com/page-name
The URL2 is the web page with opencart (3.0.3.6)
The problem is that opencart agree a code at the end and gives a 404 error
I have the url www.URL2.com/page-name?_route_=ve
How do I remove that code that agree at the end?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Are you using or going to use SEO urls ?
If not include the FULL url from the redirected domain.
what method of redirection are you using ?
If not include the FULL url from the redirected domain.
what method of redirection are you using ?
Yes i'm using the SEO urlsmikeinterserv wrote: ↑Thu Jan 28, 2021 12:58 amAre you using or going to use SEO urls ?
If not include the FULL url from the redirected domain.
what method of redirection are you using ?
It's a 301 redirection from the .htaccess on the old page
Code: Select all
Redirect 301 /ve https://www.URL2.com/page-name
https://www.URL2.com/page-name?_route_=ve
What is the FULL url of the OC page you are landing at
IF the landing page IS an SEO url
https://mydomain.com/SEO-URL
or
https://mydomain.com/index.php?route=blah-blah
EITHER
make the landing page an SEO URL if you can
OR
Use the FULL url to the page in your htaccess redirect
IF the landing page IS an SEO url
https://mydomain.com/SEO-URL
or
https://mydomain.com/index.php?route=blah-blah
EITHER
make the landing page an SEO URL if you can
OR
Use the FULL url to the page in your htaccess redirect
Last edited by mikeinterserv on Thu Jan 28, 2021 1:12 am, edited 1 time in total.
https://www.URL2.com/page-name?_route_=vemikeinterserv wrote: ↑Thu Jan 28, 2021 1:08 amWhat is the FULL url of the OC page you are landing at
IF the landing page IS an SEO url
https://mydomain.com/SEO-URL
or
https://mydomain.com/index.php?route=blah-blah
The right url is https://www.URL2.com/page-name
I don't know if you need my real URL
OK in your htaccess 301 the url
https://www.URL2.com/page-name
Redirect 301 /OLDPAGENAME https://mydomain/page-name
https://www.URL2.com/page-name
Redirect 301 /OLDPAGENAME https://mydomain/page-name
at the end of what
if your OC page name is http://www.URL2.com/page-name
there should be NOTHING at the end when you go there.
this give me a 404 error on the old URLmikeinterserv wrote: ↑Thu Jan 28, 2021 1:22 amTry this instead
RewriteRule ^ve$ https://www.mydomain.com/page-name [L,R=301]
maybe her homepage still has the index.php?route=common/home.
when you click on your logo, what url do you see?
when you click on your logo, what url do you see?
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com.
Well you didn't do it rightreginamor wrote: ↑Thu Jan 28, 2021 2:02 amthis give me a 404 error on the old URLmikeinterserv wrote: ↑Thu Jan 28, 2021 1:22 amTry this instead
RewriteRule ^ve$ https://www.mydomain.com/page-name [L,R=301]
post YOUR WHOLE htaccess file here
Last edited by mikeinterserv on Thu Jan 28, 2021 2:08 am, edited 1 time in total.
Your redirect is working perfectly on my Chrome desktop
I click the OLD url and I go here - see screenshot
I click the OLD url and I go here - see screenshot
Attachments
Clipboard01.jpg (115.32 KiB) Viewed 1157 times
yes you enter when i erase the old htaccess file and made one only with the 301 redirection
The htaccess of the old web is from a opencart 2.0.3.2 htacces default settings
Do you know how can i made the redirect in t his case?
I detect that the line that gives the problem, the one that agree that thing at the end, is this one
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
The htaccess of the old web is from a opencart 2.0.3.2 htacces default settings
Do you know how can i made the redirect in t his case?
I detect that the line that gives the problem, the one that agree that thing at the end, is this one
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Are you redirecting just a SINGLE page or LOTS of OTHER pages alsoreginamor wrote: ↑Thu Jan 28, 2021 2:28 amyes you enter when i erase the old htaccess file and made one only with the 301 redirection
The htaccess of the old web is from a opencart 2.0.3.2 htacces default settings
Do you know how can i made the redirect in t his case?
I detect that the line that gives the problem, the one that agree that thing at the end, is this one
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
If only a single page just use the redirect that worked OR ADD that redirect to THAT htaccess file
IF you DO NOT NEED THIS
Just delete it or comment it out and use the REDIRECT THAT WORKED
Code: Select all
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Who is online
Users browsing this forum: nonnedelectari and 402 guests