itdungpt Posted November 6, 2015 Share Posted November 6, 2015 (edited) please view powernet.vn/order-group2-power-hosting.html how to make domain.com/cart.php?gid= domain.com/cart.php?a=add&pid=95 i want rewrite to domain.com/groupname and domain/productname can you tell me rewrite rules for htaccess? Edited November 6, 2015 by itdungpt Killed Link Link to comment Share on other sites More sharing options...
Infopro Posted November 6, 2015 Share Posted November 6, 2015 What exactly is the question, please post the issue here to this thread. Link to comment Share on other sites More sharing options...
itdungpt Posted November 6, 2015 Author Share Posted November 6, 2015 What exactly is the question, please post the issue here to this thread. domain.com/cart.php?gid= domain.com/cart.php?a=add&pid=95 i want rewrite to domain.com/groupname and domain/productname can you tell me rewrite rules for htaccess? Link to comment Share on other sites More sharing options...
nimonogi Posted November 6, 2015 Share Posted November 6, 2015 You can use something like this: RewriteEngine On RewriteRule ^anything\.php$ /cart.php?gid=1 [L] so when you visit domain.com/anything.php will show the content of domain.com/cart.php?gid=1 1 Link to comment Share on other sites More sharing options...
itdungpt Posted November 7, 2015 Author Share Posted November 7, 2015 RewriteRule ^{$variables}\.php$ /cart.php?gid=$1 [L] can make an {$variables} for anything ? Link to comment Share on other sites More sharing options...
Hostraptor Posted March 22, 2018 Share Posted March 22, 2018 On 06/11/2015 at 11:45 PM, nimonogi said: You can use something like this: RewriteEngine On RewriteRule ^anything\.php$ /cart.php?gid=1 [L] so when you visit domain.com/anything.php will show the content of domain.com/cart.php?gid=1 Thanks! it works very well Link to comment Share on other sites More sharing options...
Recommended Posts