I am having some issues with url rewriting I am using this as my code for rewrite in htaccess
RewriteEngine On
RewriteRule ^([^/]*)\.html$ /pages.php?id=$1 [L]
this was my url
studentsassignmenthelp.com/pages.php?id=Marketing-Assignment-Help
after using the url rewrite i am getting this
studentsassignmenthelp.com/Marketing-Assignment-Help.html
but i need it without the html like the below one
studentsassignmenthelp.com/Marketing-Assignment-Help
if i use the below code to remove the .html than it shows error 500 server...
RewriteRule ^([^/]*)$ /pages.php?id=$1 [L]
I saw some example but after using them it shows 404 or 500 error
RewriteRule ^([^/]*)\.html$ /pages.php?id=$1 [L]
rule to execute the request URI needs to contain.html
in the end. Not as your describing. Also it rewrites a/home.html
request to/pages.php?id=home
– DevZer0 Jun 14 at 8:49