Post by FuelCells » Wed Nov 21, 2012 1:37 am

My Capanel redirects are randomly working. There seems to be 1 that works (/custom) and the rest do not. Here they are as they are in my .htaccess file:

RewriteOptions inherit

RewriteEngine on

RewriteCond %{HTTP_HOST} ^fuelcellsetc\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.fuelcellsetc\.com$
RewriteRule ^Store$ "https\:\/\/fuelcellsetc\.com\/store\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^fuelcellsetc\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.fuelcellsetc\.com$
RewriteRule ^custom$ "http\:\/\/fuelcellsetc\.com\/store\/Membrane\-Electrode\-Assembly\/Custom\-MEAs\-and\-CCMS\/Customized\-MEA" [R=301,L]

RewriteCond %{HTTP_HOST} ^fuelcellsetc\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.fuelcellsetc\.com$
RewriteRule ^store\/MEA\/EZ$ "http\:\/\/fuelcellsetc\.com\/store\/Membrane\-Electrode\-Assembly\/Electrolyzer\/Electrolyzer\-CCM" [R=301,L]

I would appreciate any help I can get! Thanks in advance! :)

New member

Posts

Joined
Thu May 03, 2012 4:17 am

Post by philbydevil » Wed Nov 21, 2012 5:12 am

It may be due to the fact that OC has its own .htaccess file, and when cPanel tries to do a redirect it conflicts with this.

I also had this problem with redirects through my control panel (not cPanel). I ended up just doing them manually.

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by FuelCells » Wed Nov 21, 2012 5:20 am

Thanks philbydevil!

Ahhhhh... well oddly enough i tried doing them in the OpenCart .htaccess file and they still worked a bit randomly...hmmm

Any suggestions or ideas on using the following format for 301 redirects:

Code: Select all

RewriteCond %{HTTP_HOST} ^fuelcellsetc\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.fuelcellsetc\.com$
RewriteRule ^store\/MEA\/EZ$ "http\:\/\/fuelcellsetc\.com\/store\/Membrane\-Electrode\-Assembly\/Electrolyzer\/Electrolyzer\-CCM" [R=301,L]
Is there any easier way to do it? Also, where should I be placing them?

New member

Posts

Joined
Thu May 03, 2012 4:17 am

Post by philbydevil » Wed Nov 21, 2012 5:33 am

I don't really understand that redirect (which isn't to say that it won't work).

This is how I do my 301 redirects in the root .htaccess:

Code: Select all

redirect 301 /old-page http://www.yourstore.com/new-page?
Note the trailing ?

Or sometimes they don't have the ?:

Code: Select all

redirect 301 /old-sitemap http://www.yourstore.com.au/index.php?route=information/sitemap

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am
Who is online

Users browsing this forum: No registered users and 39 guests