Post by dhruvkataria » Fri Oct 10, 2014 3:20 pm

Hi ,
Can someone give me a redirect code for the below URL to the new URL. I dont know coding so wondering if someone can help me. I am using OC 1.56 and I assume I just stick this in .htaccess file.

OLD URL : http://thekollection.net/Wooden-Boxes_c4.htm

New URL to Point : http://thekollection.net/Hand-Painted-Wooden-Boxes

Any help please..

Thanks

Newbie

Posts

Joined
Wed Oct 08, 2014 2:33 pm

Post by sytra » Fri Oct 10, 2014 4:05 pm

If you use CPanel it can be done very simply in there

Running OC 1.5.5.1 with vqmods.
http://www.aislings.co.uk
http://www.lovers-paradise-toys.co.uk


Active Member

Posts

Joined
Sat Feb 04, 2012 6:27 am

Post by dhruvkataria » Fri Oct 10, 2014 4:08 pm

I did it in CPanel and this is what it show

Domain Directory Redirect Url Type Match www. Wildcard Remove
ALL /Wooden-Boxes_c4.htm http://thekollection.net/Hand-Painted-Wooden-Boxes permanent

However when I check it .. its now going to the URL
http://thekollection.net/Hand-Painted-W ... xes_c4.htm

Newbie

Posts

Joined
Wed Oct 08, 2014 2:33 pm

Post by sytra » Fri Oct 10, 2014 7:17 pm

Code: Select all

RewriteEngine on
rewriterule ^Wooden-Boxes_c4.htm (.*)$ http://thekollection.net/Hand-Painted-Wooden-Boxes $1/[R=301,L]

Running OC 1.5.5.1 with vqmods.
http://www.aislings.co.uk
http://www.lovers-paradise-toys.co.uk


Active Member

Posts

Joined
Sat Feb 04, 2012 6:27 am

Post by dhruvkataria » Fri Oct 10, 2014 7:35 pm

Comes up with a server error ..any thoughts
http://thekollection.net/Hand-Painted-W ... xes_c4.htm

Newbie

Posts

Joined
Wed Oct 08, 2014 2:33 pm

Post by nelsongemstones » Tue Oct 14, 2014 6:13 am

I'm trying to do this, too.

I want to change this: http://nelsongemstones.com/gemstone-beads/green-opal/green-opal-8mm-round-grade-a-gemstone-beads

to this: http://nelsongemstones.com/gemstone-beads/green-opal/green-opal-8mm-round-beads

I used the "redirect" link in my cpanel, and this is what it inserted in my htaccess file (it's NOT working):

#RewriteCond %{HTTP_HOST} ^nelsongemstones\.com$ [OR]
#RewriteCond %{HTTP_HOST} ^www\.nelsongemstones\.com$
#RewriteRule ^gemstone\-beads\/green\-opal\/green\-opal\-8mm\-round\-grade\-a\-gemstone\-beads$ #"http\:\/\/nelsongemstones\.com\/gemstone\-beads\/green\-opal\/green\-opal\-8mm\-round\-beads" [R=301,L]

So I tried typing directly in the htaccess file this:

Redirect 301 gemstone-beads/green-opal/green-opal-8mm-round-grade-a-gemstone-beads http://nelsongemstones.com/gemstone-beads/green-opal/green-opal-8mm-round-beads

and I tried this:

Redirect 301 /green-opal-8mm-round-grade-a-gemstone-beads http://nelsongemstones.com/gemstone-beads/green-opal/green-opal-8mm-round-beads

When I click on a search link in Google, the page is not found and the URL looks like this:

http://nelsongemstones.com/gemstone-beads/green-opal/green-opal-8mm-round-beads?_route_=green-opal-8mm-round-grade-a-gemstone-beads

What am I doing wrong?


Posts

Joined
Thu Jun 21, 2012 9:38 pm

Post by Johnathan » Tue Oct 14, 2014 10:30 pm

If you guys don't want to mess around with htaccess, you could take a look at my Redirect Manager extension. It has an OpenCart interface for adding redirects, and accomplishes them using PHP.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by nelsongemstones » Thu Oct 16, 2014 1:03 am

I'd really like to know how to do it properly through the htaccess file.

Anybody?


Posts

Joined
Thu Jun 21, 2012 9:38 pm
Who is online

Users browsing this forum: No registered users and 40 guests