Remove index.php?route=common/home from OpenCart
To simply remove that, you can do a basic replace in /catalog/controller/common/seo_url.php
Find:
return $link;
Before it on a new line put:
$link = str_replace('index.php?route=common/home', '', $link);
Edit by TheBlackBenzKid: If you want full SEO just use this line instead of the above:
$link = str_replace('index.php?route=', '', $link);
Also make sure SEO URLs is turned on in the Admin panel of the store.
Remove index.php?route= from OpenCart
Try This Its working for me using .htaccess.
RewriteCond %{THE_REQUEST} \ /index\.php\?_route_=?([^&\ ]*)
RewriteRule ^ /%1? [L,R]
Related Topics
Ajax Post Request in Laravel 5 Return Error 500 (Internal Server Error)
Getting Data with Utf-8 Charset from Mssql Server Using PHP Freetds Extension
_Construct() VS Sameasclassname() for Constructor in PHP
Laravel Error: Missing Required Parameters for Route
Can You Re-Populate File Inputs After Failed Form Submission with PHP or JavaScript
Get Most Recent Date from an Array of Dates in "Y-M-D H:I:S" Format
How to Get First X Chars from a String, Without Cutting Off the Last Word
Do I Need to Restart Apache After Changing the PHP.Ini File
The Csrf Token Is Invalid. Please Try to Resubmit the Form
Php: Static and Non Static Functions and Objects
Remove Xml Version Tag When a Xml Is Created in PHP
Fastest Way to Retrieve a <Title> in PHP
How to Check If an Uploaded File Is an Image Without Mime Type
Track When User Hits Back Button on the Browser
How to Access PHP Session Variables from Jquery Function in a .Js File