I am create the rules in the .htaccess file in my domain folder.
My url on server is :
https://www.everyoneknows.com.my/customer/?loc=dashboard
And I want change url to:
https://www.everyoneknows.com.my/customer/dashboard/
In the .htaccess file, I write the rules are:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^everyoneknows\.com\.my [OR,NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.everyoneknows.com.my/$1 [R,L]
##External redirect to /customer/dashboard url rules here.
RewriteCond %{QUERY_STRING} ^loc\=dashboard$
RewriteRule ^customer/$ https://www.everyoneknows.com.my/customer/dashboard/? [R=301,L]
And the error message is shown:
Not Found
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Hope someone can guide me on how to correct in my rewrite url rules. Thanks.
Original result:
Updated 1


