I've done the due diligence, spending hours poring through searches and stack QA. No dice. So I finally come here to request help.
- Apache HTTP Server
- PHP 5.3
I have dirty urls:
.cc/store/index.php?route=checkout/cart
.cc/store/index.php?route=common/home
.cc/store/index.php?route=product/product&product_id=111
I'd like to clean them so when a user clicks on a dirty link or types a dirty url they get a clean url in the address bar:
.cc/store/cart
.cc/store/home
.cc/store/product/11
Currently I have my htaccess file in:
.cc/store/.htaccess
I know I need in htaccess:
RewriteEngine On
But is this the right path?:
RewriteRule !/index.php?route=(A-Z)/(A-Z)&(*)$ /$2/$3
Q1: Do I need to just edit the htaccess file or will I also have to write some php?
Q2: What htaccess / php code do I write to get the desired clean urls? I want to see clean urls in the address bar of my browser.
Thanks in advance.