VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: broc93 on December 22, 2014, 19:54:24 PM

Title: Change SEO suffix redirecting old pages
Post by: broc93 on December 22, 2014, 19:54:24 PM
Hello!
I want to change the SEO suffix of every virtuemart product page from the default one "-detail" to another. The fact is that I don't want people who go to the old pages to get a 404 error. How can I redirect the old pages to the new ones?
Thank you in advance!
Title: Re: Change SEO suffix redirecting old pages
Post by: jenkinhill on December 22, 2014, 20:22:42 PM
Configuration/SEO

[attachment cleanup by admin]
Title: Re: Change SEO suffix redirecting old pages
Post by: broc93 on January 04, 2015, 15:10:12 PM
Yeah, but this way I would get a 404 error when visiting the pages with the old suffix. I want to make a redirect from the old to the new ones because the site has been live for almost two years now and I don't want my customers to see 404 errors. Thank you in advance!
Title: Re: Change SEO suffix redirecting old pages
Post by: GJC Web Design on January 04, 2015, 16:05:59 PM
if u can't match the old urls by config/choice of aliases etc then you will have to set up redirections -
htaccess or there are extensions available
Title: Re: Change SEO suffix redirecting old pages
Post by: AH on January 07, 2015, 10:00:40 AM
I use this for my redirects

And I have hundreds!

Allows pattern matching for "bulk" redirect

http://www.selfget.com/products/redj.html (http://www.selfget.com/products/redj.html)
Title: Re: Change SEO suffix redirecting old pages
Post by: broc93 on January 08, 2015, 14:05:43 PM
Quote from: Hutson on January 07, 2015, 10:00:40 AM
I use this for my redirects

And I have hundreds!

Allows pattern matching for "bulk" redirect

http://www.selfget.com/products/redj.html (http://www.selfget.com/products/redj.html)

I've tried to make this redirects but don't know how do do that. Could you please help? :(
Title: Re: Change SEO suffix redirecting old pages
Post by: GJC Web Design on January 08, 2015, 14:13:00 PM
??????  http://www.selfget.com/documentation/redj-joomla25.html
Title: Re: Change SEO suffix redirecting old pages
Post by: broc93 on January 15, 2015, 15:53:13 PM
Yeah, I did read that but still not able to do this redirection. How could I do it via htaccess?
Title: Re: Change SEO suffix redirecting old pages
Post by: AH on January 15, 2015, 16:51:06 PM
if you cannot work out redj then regex pattern matching in .htaccess is going to be fun!

http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html (http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html)

Title: Re: Change SEO suffix redirecting old pages
Post by: GJC Web Design on January 15, 2015, 23:49:27 PM
yep..... ???