Post by envong » Sun Feb 05, 2012 3:57 pm

Hi guys,

First, thanks the Opencart Team. Opencart is a great program and help me achieve my E-commerce dream.

And now, I want to build a new site with Opencart 1.5.1.3, but some thing I can not solve by myself. So I ask for help and wish someone can help me. Thanks a lot.

The question is, I want to make the tag pages and search pages to be rewrite as the follow rule:

Tag pages

from http://www.domain.com/index.php?route=p ... g=keywords

to http://www.domain.com/tag/keywords

Search pages

from http://www.domain.com/index.php?route=p ... e=keywords

to http://www.domain.com/search/keywords

Please, please help for this question.
Thanks a lot and wish you all the best.

Sorry for my poor English.
Last edited by envong on Wed Feb 08, 2012 4:58 pm, edited 1 time in total.

Newbie

Posts

Joined
Sun Feb 05, 2012 2:50 pm

Post by mosen7 » Sun Feb 05, 2012 8:52 pm

RewriteCond $1 !^(index.php|images|robots\.txt)
RewriteRule /tag/(.*) index.php?route=product/search&filter_tag=$1 [L]

maybe you can search more info of rewrite

Desktop wallpaper
anime wallpaper


Newbie

Posts

Joined
Sun Feb 05, 2012 7:43 pm
Location - en

Post by envong » Mon Feb 06, 2012 10:34 am

mosen7 wrote:RewriteCond $1 !^(index.php|images|robots\.txt)
RewriteRule /tag/(.*) index.php?route=product/search&filter_tag=$1 [L]

maybe you can search more info of rewrite
Hi mosen7,
Thanks for your reply.

But when I test the code you give me, it's not working.
I copy the code to the .htaccess file. And then there is a "500 Internal Server Error" happened.

Then I just copy the second line, no "500 Internal Server Error" happen, but not work as the top.

So, if you have another suggestion, please help.

Thanks for your help and wish you all the best.

If any others can help me with this, that would be nice and kindness.

Newbie

Posts

Joined
Sun Feb 05, 2012 2:50 pm

Post by envong » Mon Feb 06, 2012 2:36 pm

Anyone can help me?

Waiting on line.........

O0

Newbie

Posts

Joined
Sun Feb 05, 2012 2:50 pm

Post by envong » Mon Feb 06, 2012 9:12 pm

:'( :'( :'( :'( :'( :'(

Newbie

Posts

Joined
Sun Feb 05, 2012 2:50 pm

Post by envong » Wed Feb 08, 2012 5:03 pm

SOS......

Newbie

Posts

Joined
Sun Feb 05, 2012 2:50 pm

Post by R_D » Wed Feb 08, 2012 5:24 pm

did you enable SEO URL's in the shops admin?

R_D
Active Member

Posts

Joined
Sun Jan 09, 2011 3:13 am

Post by envong » Wed Feb 08, 2012 5:44 pm

R_D wrote:did you enable SEO URL's in the shops admin?
Sure!

But the index.php?route=product/search is not working.

The others are ok.

Newbie

Posts

Joined
Sun Feb 05, 2012 2:50 pm

Post by R_D » Wed Feb 08, 2012 11:05 pm

take a look at:

http://forum.opencart.com/viewtopic.php?t=30366

is this what you are searching for?

R_D
Active Member

Posts

Joined
Sun Jan 09, 2011 3:13 am

Post by envong » Thu Feb 09, 2012 10:04 am

R_D wrote:take a look at:

http://forum.opencart.com/viewtopic.php?t=30366

is this what you are searching for?
Thanks R_D, But the post you give me just similar with my question.

I want make the index.php?route=product/search&filter_tag and index.php?route=product/search&filter_name to the seo friendly urls. And the search url is not rewrite by the default.

Newbie

Posts

Joined
Sun Feb 05, 2012 2:50 pm

Post by envong » Thu Feb 09, 2012 8:26 pm

Anyone know this and help me?

Newbie

Posts

Joined
Sun Feb 05, 2012 2:50 pm

Post by picobo » Sat Feb 18, 2012 11:08 am

maybe this extension might help you... http://www.opencart.com/index.php?route ... on_id=4709

Newbie

Posts

Joined
Sat Feb 11, 2012 6:59 am
Who is online

Users browsing this forum: No registered users and 340 guests