Post by reginamor » Thu Jan 28, 2021 12:31 am

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?

User avatar
Active Member

Posts

Joined
Wed Sep 21, 2011 4:44 am
Location - GB

Post by straightlight » Thu Jan 28, 2021 12:57 am

reginamor wrote:
Thu Jan 28, 2021 12:31 am
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?
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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mikeinterserv » Thu Jan 28, 2021 12:58 am

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 ?

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by reginamor » Thu Jan 28, 2021 1:06 am

mikeinterserv wrote:
Thu Jan 28, 2021 12:58 am
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 ?
Yes i'm using the SEO urls
It's a 301 redirection from the .htaccess on the old page

Code: Select all

Redirect 301 /ve https://www.URL2.com/page-name
But the redirection that arrives is
https://www.URL2.com/page-name?_route_=ve

User avatar
Active Member

Posts

Joined
Wed Sep 21, 2011 4:44 am
Location - GB

Post by mikeinterserv » Thu Jan 28, 2021 1:08 am

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
Last edited by mikeinterserv on Thu Jan 28, 2021 1:12 am, edited 1 time in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by reginamor » Thu Jan 28, 2021 1:11 am

mikeinterserv wrote:
Thu Jan 28, 2021 1:08 am
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
https://www.URL2.com/page-name?_route_=ve

The right url is https://www.URL2.com/page-name

I don't know if you need my real URL

User avatar
Active Member

Posts

Joined
Wed Sep 21, 2011 4:44 am
Location - GB

Post by mikeinterserv » Thu Jan 28, 2021 1:15 am

OK in your htaccess 301 the url
https://www.URL2.com/page-name

Redirect 301 /OLDPAGENAME https://mydomain/page-name

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by reginamor » Thu Jan 28, 2021 1:17 am

yes, it's what i did

I don't understand why agree the ?route=ve at the end

User avatar
Active Member

Posts

Joined
Wed Sep 21, 2011 4:44 am
Location - GB

Post by mikeinterserv » Thu Jan 28, 2021 1:20 am

reginamor wrote:
Thu Jan 28, 2021 1:17 am
I don't understand why agree the ?route=ve at the end
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.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Thu Jan 28, 2021 1:22 am

Try this instead
RewriteRule ^ve$ https://www.mydomain.com/page-name [L,R=301]

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by reginamor » Thu Jan 28, 2021 2:02 am

mikeinterserv wrote:
Thu Jan 28, 2021 1:22 am
Try this instead
RewriteRule ^ve$ https://www.mydomain.com/page-name [L,R=301]
this give me a 404 error on the old URL

User avatar
Active Member

Posts

Joined
Wed Sep 21, 2011 4:44 am
Location - GB

Post by fegdeed » Thu Jan 28, 2021 2:04 am

maybe her homepage still has the index.php?route=common/home.
when you click on your logo, what url do you see?

Image
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com.


Active Member

Posts

Joined
Fri Sep 21, 2018 12:01 am

Post by mikeinterserv » Thu Jan 28, 2021 2:08 am

reginamor wrote:
Thu Jan 28, 2021 2:02 am
mikeinterserv wrote:
Thu Jan 28, 2021 1:22 am
Try this instead
RewriteRule ^ve$ https://www.mydomain.com/page-name [L,R=301]
this give me a 404 error on the old URL
Well you didn't do it right
post YOUR WHOLE htaccess file here
Last edited by mikeinterserv on Thu Jan 28, 2021 2:08 am, edited 1 time in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by reginamor » Thu Jan 28, 2021 2:08 am

i think that it's a problem of the htaccess of the old web

User avatar
Active Member

Posts

Joined
Wed Sep 21, 2011 4:44 am
Location - GB

Post by mikeinterserv » Thu Jan 28, 2021 2:13 am

Your redirect is working perfectly on my Chrome desktop
I click the OLD url and I go here - see screenshot

Attachments

Clipboard01.jpg

Clipboard01.jpg (115.32 KiB) Viewed 1157 times


Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by reginamor » Thu Jan 28, 2021 2:28 am

yes you enter when i erase the old htaccess file and made one only with the 301 redirection :laugh:

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]

User avatar
Active Member

Posts

Joined
Wed Sep 21, 2011 4:44 am
Location - GB

Post by mikeinterserv » Thu Jan 28, 2021 2:32 am

reginamor wrote:
Thu Jan 28, 2021 2:28 am
yes you enter when i erase the old htaccess file and made one only with the 301 redirection :laugh:

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 also
If only a single page just use the redirect that worked OR ADD that redirect to THAT htaccess file

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Thu Jan 28, 2021 2:39 am

IF you DO NOT NEED THIS

Code: Select all

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Just delete it or comment it out and use the REDIRECT THAT WORKED

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by reginamor » Thu Jan 28, 2021 2:48 am

if i erase that line i lost all the links on the old web, and that links have to work....

aggghhhh... i hate this part of opencart :'(

User avatar
Active Member

Posts

Joined
Wed Sep 21, 2011 4:44 am
Location - GB

Post by mikeinterserv » Thu Jan 28, 2021 3:03 am

I already asked you that question
If you don't read my answers properly I can't help further.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales
Who is online

Users browsing this forum: nonnedelectari and 402 guests