Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

HTTP 410 Gone

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 05-12-2017, 06:17 AM
 
happyscott happyscott is offline
 

Advanced Member
  
Join Date: Sep 2006
Posts: 71
 

Default Re: 301 Redirect not working in HTACCESS file

can anyone tell me jow to do a 410 in x-cart 5 please?

thanks

scott
__________________
version 5.3.1 on dedicated server.
Reply With Quote
  #2  
Old 05-16-2017, 02:56 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: 301 Redirect not working in HTACCESS file

Quote:
Originally Posted by happyscott
can anyone tell me jow to do a 410 in x-cart 5 please?

I'm sorry, what is "410"?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 05-16-2017, 04:19 AM
 
happyscott happyscott is offline
 

Advanced Member
  
Join Date: Sep 2006
Posts: 71
 

Default Re: 301 Redirect not working in HTACCESS file

page removed/no longer available

scott
__________________
version 5.3.1 on dedicated server.
Reply With Quote
  #4  
Old 05-16-2017, 04:36 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: 301 Redirect not working in HTACCESS file

Where do you want to respond with this HTTP status?
Please could you describe the desired behaviour in details?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 05-16-2017, 05:27 AM
 
happyscott happyscott is offline
 

Advanced Member
  
Join Date: Sep 2006
Posts: 71
 

Default Re: 301 Redirect not working in HTACCESS file

The desired behaviour is user goes to web page which I have removed he then sees a 410 page.

Old style code used to be like this:

Redirect 410 /example.html

This does not work with x-cart 5

So I am guessing it needs to be something like the format here:


RewriteCond %{REQUEST_URI} ^/example.html$
RewriteRule ^.*$ 410page.html [R=410,L]

But I don't know

thanks
__________________
version 5.3.1 on dedicated server.
Reply With Quote
  #6  
Old 05-16-2017, 11:53 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: HTTP 410 Gone

Do you mean responding with 410 Gone for products and categories that you removed? If so, a simple change in .htaccess is not enough, I think. You should track removed URLs inside X-Cart and respond with 410 from there.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #7  
Old 05-17-2017, 11:49 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: HTTP 410 Gone

Try one of these:

Code:
RedirectMatch gone /example.html

OR

Code:
# Make sure this is immediately following RewriteEngine On RewriteRule ^example\.html$ - [G]
Reply With Quote
  #8  
Old 05-18-2017, 08:00 AM
 
happyscott happyscott is offline
 

Advanced Member
  
Join Date: Sep 2006
Posts: 71
 

Default Re: HTTP 410 Gone

Quote:
Originally Posted by qualiteam
Do you mean responding with 410 Gone for products and categories that you removed? If so, a simple change in .htaccess is not enough, I think. You should track removed URLs inside X-Cart and respond with 410 from there.

I do not know what you mean? items deleted inside the shop so url should already have gone? So I need to tell the search engines it will not be back?
__________________
version 5.3.1 on dedicated server.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:27 PM.

   

 
X-Cart forums © 2001-2020