Need help with .htaccess / 301 redirects

I am trying to 301 redirect product pages from my old store to my new ecwid store using htaccess. When I try to go to the old page it basically comes up with a 404 error and takes me to my main new store page.

When I look at the address the redirect has placed most of my old address just before the &id number in the new store address. The page id from the old address is then placed after the &id number. I have no idea why the old address is even being placed in the new address at all. I am not very knowledgeable with htaccess. I am using the old one from my site and just adding the lines I want manually. Maybe I should just start fresh.

Old address

[url removed, login to view]

New address

[url removed, login to view]!/~/product/category=43997&id=1878820

Redirected address

[url removed, login to view]!/~/product/category=43997/shopcart/product_name-p-4993.htmlid=1878820?products_id=4993

It seems to actually replace the "&" symbol in the new address with the entire old address path. Then it adds a "?" to the end and extracts "products_id=4993" from the end of the old address "p-4993" and inserts it after the "?".

My new store is an AJAX store. I have NO ability to change the structure of the product address/permalink. This means that I must find the correct syntax to use to redirect.

I am in search of two things. First someone that can make this redirect work correctly and second someone that can cleanup my htaccess file and make sure it is built with the correct structure and security measures.


Færdigheder: AJAX, Apache, PHP, Script Installering, Web Hosting

Se mere: html ajax 301 redirect, ecwid htaccess, my correct address, my address is correct, category php id, htaccess, ecwid, find product script, htaccess permalink, php redirects, redirects error, htaccess replace, search replace script, htaccess category, htaccess 301, script 404, syntax error html, 301, script find address, php htaccess help, ajax address search php, htaccess redirect page php, redirects, need fresh look, need someone correct

Om arbejdsgiveren:
( 6 bedømmelser ) Oregon City, United States

Projekt-ID: #4120776

Tildelt til:


Hello! I'm ready to start when you are. I'll need either 1) remote access to the server hosting the .htaccess or 2) a copy of said .htaccess. #1 would be preferred as it'll allow me to test & verify the changes. Mere

$30 USD in 0 dage
(5 bedømmelser)

14 freelancers are bidding on average $35 for this job


Please check PM

$50 USD på 1 dag
(72 bedømmelser)

Dear sir, I have over 10 years of experience in Web Development including PHP, Smarty, MySQL, jQuery, etc. Also I am Zend Certified PHP Developer (ZCE). I can help you out with your project. Let's do it!

$30 USD på 1 dag
(35 bedømmelser)

Have you tried escaping the ampersand? I can clean up your htaccess file. Thanks!

$30 USD på 1 dag
(10 bedømmelser)

Hi. I'm a PHP web developer with Apache server configuration experience. Ready to start. Regards.

$50 USD på 1 dag
(15 bedømmelser)

Hi, I am a ZCE having around 6 years of experience in PHP Technology with some frameworks/cms i.e. Symfony, Joomla, Wordpress, Jquery, Ajax & javascript. As I am a ZCE, My main focus is on quality delivery to Mere

$30 USD på 1 dag
(26 bedømmelser)

Hi, lets do this.

$30 USD in 0 dage
(23 bedømmelser)

Hi, I can do it perfectly. Regards.

$50 USD på 1 dag
(21 bedømmelser)

We can give you the solution in few mins!!!

$33 USD på 1 dag
(19 bedømmelser)

Ready to start, FTP and escow required to start work immediately

$50 USD på 1 dag
(14 bedømmelser)

Can get this done right away!

$30 USD på 1 dag
(10 bedømmelser)

Best quality work will be provided.

$30 USD på 1 dag
(5 bedømmelser)

Hello Please read more than private message thank you

$30 USD på 1 dag
(1 bedømmelse)

your work would be done professionally, if i get a chance to work for you. Looking forward to get positive reply from your side.

$30 USD på 1 dag
(0 bedømmelser)

Lets do this work.

$30 USD in 0 dage
(0 bedømmelser)