Ad
Clean URL's Using OpenCart's Router Class
How do you write clean URL's in OpenCart using their built in Router class? Here is my .htaccess file:
RewriteEngine On RewriteRule ^(system) - [F,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L]
Ad
Answer
The work is very hard To modify more than 3 files
catalog\controller\common\seo_url.php
catalog\model\tool\seo_url.php
Add this line to your file to modify
$this->load->model('tool/seo_url')
and used
$this->model_tool_seo_url->rewrite()
to rewrite.
Hard to say clearly,the above are only approximate
Ad
source: stackoverflow.com
Related Questions
- → October CMS - How to correctly route
- → .htaccess - not routing to public folder
- → Lumen role middleware missing argument
- → Laravel 5 Cashier Middleware Routing Error
- → Dynamic url segment name in laravel 5.1
- → Laravel show data from key column not from id
- → Laravel 4.2 application occurs unnecessary redirection after uploading live server
- → Laravel 5 route::group more than one controller issue
- → Laravel group routing issue
- → How to pass default parameters to laravel controller in a get route
- → Can't route in Laravel framework
- → Laravel 5 routing using prefix
- → Uncaught Error: Invariant Violation: Element type is invalid: Object
Ad