You are here:  » rewrite rules

Support Forum



rewrite rules

Submitted by technoarenasol on Mon, 2012-12-03 10:22 in

Hi David,

Can be possible of rewrite of this url :

http://example.com/mobile/search.php?q=category%3AMobile&x=80&y=9 to http://example.com/category/mobile

Thanks
Amin

Submitted by support on Mon, 2012-12-03 10:32

Hi Amin,

You could - but would have to go in your top level .htaccess not the Price Tapestry installation (/mobile/) .htaccess. The rule would be:

RewriteRule ^category/mobile$ /mobile/search.php?category:mobile [L]

Cheers,
David.
--
PriceTapestry.com

Submitted by technoarenasol on Sat, 2012-12-15 12:14

Hi David,

This rewrite tricks work only in single page...Its not working on navigation....when click on next page its give same page...check on {link saved}

Thnx
Amin

Submitted by support on Sat, 2012-12-15 12:26

Hello Amin,

html/navigation.php must be updated to reference search.php directly as it is not normally called from pages such as this. In that file, use your text editor's Search and Replace function as follows:

Search:

"?q="

Replace:

$config_baseHREF."search.php?q="

Follow on links will then work as expected.

Cheers,
David.
--
PriceTapestry.com

Submitted by technoarenasol on Sun, 2013-02-24 07:57

technoarenasol

Hi David

On This Rewrite Page sort by menu not working......Failed to changes low to high price,high to low price etc...

Thanks

Submitted by support on Sun, 2013-02-24 08:58

Hi Amin,

I just checked a recent search.php that I have from you and the $sortBaseHREF variable doesn't have the $config_baseHREF prefix. At line 284 look for this code:

  $sortHREF = "search.php?q=".urlencode($q)."&page=1&";

...and REPLACE with:

  $sortHREF = $config_baseHREF."search.php?q=".urlencode($q)."&page=1&";

That should be all it is!

Cheers,
David.
--
PriceTapestry.com