htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Rewrite 301 in htacess (apache) for dynamic urls ?
PostPosted: 02 Jun 2008 12:32 
Offline

Joined: 02 Jun 2008 12:04
Posts: 1
Hi guys! I'm a newbie and I have been reading for days now but I can't understand how do make it work!
I will stay on the same server and have a seo mod installed that makes all php to html running on apache.

My store will remain on the same domain but all old products/categories and so on need to be redirected (301). The problems is that it's dynamic url's and I just can't get how to make it work! How the code should look, where to add the code and so on!

Also I start to wonder if the seo that makes all php to html is the reason?

Anyway here is what I want to redirect
Code:
http://domain/view_product.php?product=S711
http://domain/stay-ups-7/strumpbyxor-rose-37.html


Here is what I tried with after reading for hours =)
Code:
rewritecond %{QUERY_STRING} ^(.*)_product=S711$
rewriteRule ^view_product.php?product=S711$ /stay-ups-7/strumpbyxor-rose-37.html [R=301,L]


I wonder if it's even possible to redirect the old urls to my new site with html docs since the view_product.php don't even answer as I understand .... and if we don't care about that part anyway how should my htacess file understand the dynamic "calls" view_product? does .... I just don't get it!

A big thanks in advance if someone could give me some nice info here.
A free ride on a Swedish elk to the first that have a nice answer =)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: MSNbot Media and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB