You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by cocozz <co...@gmail.com> on 2005/08/30 05:49:39 UTC

[users@httpd] .htaccess MOD REWRITING

Hi,

I am trying to use the MOD REWRITING function of Apache on a Nucleus CMS 
with .htaccess.

So I put the .htaccess on my site folder ( /var/www/nucleus). It 
contains the following lines:

    RewriteEngine On
    RewriteRule ^archive-([0-9]+)-([0-9]+)-([0-9]+).html+
    index.php?archive=$2-$3&blogid=$1
    RewriteRule ^item-([0-9]+).html+ index.php?itemid=$1
    RewriteRule ^archivelist-([a-z]+).html+ index.php?archivelist=$1

But it doesnt works, I get 500 errors when trying to access 
mysite.com/item-1.html

Hope you can help me,
Regards


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .htaccess MOD REWRITING

Posted by Arne Heizmann <Ar...@csr.com>.
>    RewriteRule ^item-([0-9]+).html+ index.php?itemid=$1

should probably be:

	RewriteRule ^/item-([0-9]+).html /index.php?itemid=$1

What was the purpose of the "+" you added after "html"?


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org