Redirect another view using htaccess |
Hi all,
I want to access a link http://localhost/controller/function/product_id --> view to http://localhost/same_controller/same_fu...oduct_name --> same view open. Using Htaccess.
Why .htaccess? Just setup a route to do it.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Create file in your Codeigniter folder then save as ".htaccess"
then paste this... RewriteEngine on RewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png) RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d RewriteRule ^(.*)$ ./index.php/$1 [L] |
Welcome Guest, Not a member yet? Register Sign In |