.htaccess file error in Apache 2.2.10

Discussion in 'Apache' started by abhinavspoint, Oct 29, 2008.

  1. #1
    I have a modrewrite question. All the links on my site http://www.caterinamurino.org/ was previously working fine on some Apache 1+ server. recently the hosting service have changed to Apache 2.2.10. for some of my pages on that site its givin a 404 error like http://www.caterinamurino.org/caterina-murino-pictures/.
    but the link http://www.caterinamurino.org/cateri...ures/index.php
    and links under the page should be

    http://www.caterinamurino.org/cateri...icture-001.JPG
    http://www.caterinamurino.org/cateri...icture-001.JPG

    are workin fine.

    so i am unable to figure the change in mod rewrite derivatives in the new apache server.

    hers my .htaccess file in the folder - caterina-murino-pictures

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
    RewriteCond %{REQUEST_FILENAME} -d [NC]
    RewriteRule ^.*$ - [R,L]
    RewriteRule ^([0-9]+)/?$ index.php?page=$1 [L,QSA]
    #RewriteRule ^([^/\\.]+)/([^/\\]+)$ image.php?album=$1&image=$2 [L,QSA]
    RewriteRule ^([^/\\]+)$ image.php?image=$1 [L,QSA]
    RewriteRule ^([^/\\]+)/([^/\\]+)$ image.php?image=$2&res=$1 [L,QSA]

    Thanks for any help
     
    abhinavspoint, Oct 29, 2008 IP