Home › Forums › Other › HTACCESS configure › Reply To: HTACCESS configure
September 16, 2014 at 3:21 pm
#183309
Inactive
what do you want to happen
What i want to do is change my URL’s from
http://website.com/page/?id=23 TO http://website.com/page/name-of-content
what you did
I added the following code to my .htaccess file.
RewriteEngine On
RewriteRule ^page/([^-]*)$ /page/index.php?id=$1 [L]
<code></code>
what happened instead
Instead i got this error on the error log
[Tue Sep 16 03:27:17 2014] [alert] [client XX.XXX.XXX.XXX]/home/domain/public_html/website.com/.htaccess: RewriteCond: bad argument line '^page/([^-]*)$', referer: http://website.com/
and the 500 error page on the actual site.