Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other HTACCESS configure Reply To: HTACCESS configure

#183309
Anonymous
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.