Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Redirect troubles...
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Redirect troubles...

Redirect troubles... 14 years, 3 months ago #13939

Hi, I'm using JoomSEF and the virtuemart plugin. I'm developing a new site to replace on old ecommerce system.

The old url looks like domain.com/index.php?categoryID=79

And the new one looks like domain.com/shop/categoryname

I now need to 301 redirect the old urls to the new ones. Easier said then done!

In my .htaccess I have...
 
RewriteEngine On
RewriteRule (.*)categoryID=45$ shop/category1 [L,R=301]
RewriteRule (.*)categoryID=46$ shop/category2 [L,R=301]

...but it don't work. It works fine if I omit the '?' from the old url but it seems once there is a query I need to have something else in the .htaccess. I know very little about this subject but I'm guessing I need some RewriteCond rule in there?

Any guidance would be greatly appreciated!
The topic has been locked.

Re:Redirect troubles... 14 years, 3 months ago #13949

Solved!

Options +FollowSymLinks 
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^categoryID=79$
RewriteRule ^index.php$ /shop/categoryname? [L,R=301]
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný