|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Mod-rewrite problem
Hi!
I had a product page with the following URL: www(dot)xyz(dot)com/productdescription.php?keyval=27 Using mod_rewrite i have successfully 301 the page to: www(dot)xyz(dot)com/Genee-DS.php Now the problem is the link which points to the product page still shows the old dynamic URL. I want to display the new URL: www(dot)xyz(dot)com/Genee-DS.php Now what i should do.I used the following code in my .htaccess file: RewriteCond %{QUERY_STRING} ^keyval\=27$ [nc] RewriteRule ^productdescription\.php$ http://www(dot)xyz(dot)com/Genee-DS.php? [R=301,L] |
|
#2
|
||||
|
||||
|
I'm not code in htaccess but my point of view is, you try redirect the old dynamic url.
My site got that problem too, but its been fixed. every time I see the old url it redirect to the new url.
__________________
|
|
#3
|
||||
|
||||
|
Rewriting the url with mod_rewrite will not change the fact that the shopping cart script creates a link with the original url... to do that you would need to alter the script.
Why do you want the new url displayed?
__________________
ClickyB "The quality of the visitor is more important than the volume".. Egol 22nd Feb 2008
New to SEO? Start Here: SEO FAQForum Rules & Posting Guidelines |
|
#4
|
|||
|
|||
|
Quote:
I want to create seo firendly URLs. How i can alter the script.I spent so much time on the Apache module rewrite but still my problem is not solved |
![]() |
| Viewing: SEO Chat Forums > Google > Google Optimization > Mod-rewrite problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|