Home arrow Support & FAQs arrow Forum arrow Extensionsarrow sh404SEFarrow Virtuemartarrow Batch 301 Redirects
Pages: [1]
Print
Author Topic: Batch 301 Redirects  (Read 336 times)
aquafx
Newbie
*

Karma: +0/-0
Posts: 14


View Profile Email
« on: March 29, 2010, 03:58:10 PM »

Posts on this board will not be answered unless the following questions have been answered:

Did u find any similar threads when you searched the forum?
No
Have you set the $live_site variable?
Yes
What is your sh404SEF version?
1.5.4.302
What version of Virtuemart are you using?
1.1.3
What is your Joomla version?
1.5.14
What PHP version is displayed in the Joomla backend: Main Menu > Help > System Info?
5.2.9
What database version is displayed in the Joomla backend: Main Menu > Help > System Info?
5.0.89-community
Are SEF URLs working as expected using the core Joomla SEF (with sh404SEF disabled)?
Yes
Are you using a UNIX/Linux or Windows based server?
Linux
What rewrite mode are you using?
With .htaccess
Have you configured the .htaccess file (mod_rewrite only)?
Didn't need to configure... worked out of the box
Have you tried the experimental IIS server configuration (Windows only)?
N/A

Please describe the issue below:

Let's say I have a product line of clothing -

http://www.mysite.com/shirts/

But all these products are last years stock. I want to remove all 600 products in shirts and add this years products.

My products would be listed as follows :
http://www.mysite.com/shirts/prod1.html
http://www.mysite.com/shirts/prod2.html

I want to 301 redirect all the old shirt URL's to the http://www.mysite.com/shirts/

How can I do this in one shot?
Logged
shumisha
Global Moderator
Hero Member
*****

Karma: +16/-1
Posts: 1587


View Profile Email
« Reply #1 on: March 30, 2010, 03:07:07 AM »

Hi

If I understand well, you want to send all old products /shirts/old-prod-1.html to the one and only page /shirts.
Unless there is a regularity in your product names, you are not going to be able to do redirect  this redirect in a htaccess, and still not redirect the new products.

From within sh404sef, what you can do is cut and paste all old urls in the alias box of /shorts/ That will do what you want. I guess with 600, it should be ok. Don't do that every year though, especially if you have more and more products

I would also suggest that instead of doing that, you enter old-prod.html url as an alias of a new prod url. Probably, there are some similarities in old and new products, so you may want to redirect an old product to the closest new product

In the future, you may want to change the url structure so that it looks like : /shirts/2010/prod-1.html
That way you can do all redirects in one .htaccess line, going from /shirts/2010/.... to /shirts/2011/...
Of course doing this now is a bi too late, as it would require changing your shop categories structure.

Rgds
Logged

*** Please read this post and the FAQs before posting in the forum. ***
*** Documentation links: JCal Pro | sh404SEF | I'll Be There RSVP ***
*** Support questions via PM or e-mail will be ignored.
aquafx
Newbie
*

Karma: +0/-0
Posts: 14


View Profile Email
« Reply #2 on: March 30, 2010, 06:40:10 AM »

"I would also suggest that instead of doing that, you enter old-prod.html url as an alias of a new prod url. Probably, there are some similarities in old and new products, so you may want to redirect an old product to the closest new product" -

That is probably the best method, but is there any way to batch do this? Or do I have to do this one by one?
Logged
shumisha
Global Moderator
Hero Member
*****

Karma: +16/-1
Posts: 1587


View Profile Email
« Reply #3 on: March 30, 2010, 08:14:50 AM »

That's more a virtuemart problem. I don't know if you can batch-move your products around or if you can just change the categories tree.
It's probably only worth dooing it for the new products, those of this year

Rgds
Logged

*** Please read this post and the FAQs before posting in the forum. ***
*** Documentation links: JCal Pro | sh404SEF | I'll Be There RSVP ***
*** Support questions via PM or e-mail will be ignored.
Pages: [1]
Print