mod_rewrite

Discussion in 'Installation/Configuration' started by Shaggybb, Jan 14, 2009.

  1. Shaggybb

    Shaggybb New Member

    Hello to everybody,

    I need to use mod_rewrite in a specific web. I was reading some post about how configure a website to use .htaccess properly.

    I have done next changes on my apache configuration files:
    • In httpd.conf file I have put this lines in Directory /var/www/*/web:
      Code:
      Options +Includes +FollowSymlinks -Indexes
          AllowOverride All
    • In /var/www/web2/web I have put .htaccess file.

    When I put mydomain.com it resolves www.mydomain.com correctly but when I put www.mydomain.com\es it doesn't resolve page.
    This is the error in my error.log file:
    [Wed Jan 14 12:48:58 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/web2/web/es

    Can anybody help me?
     
  2. commentator

    commentator Member

    can you please show your .htaccess file contents here?
     
  3. tchouk

    tchouk New Member

    There is an .htaccess file included in one of the pages I'm setting up (it's a Rumba Wiki page):

    Code:
    ErrorDocument 401 /
    ErrorDocument 403 /
    ErrorDocument 404 /
    ErrorDocument 500 /
    
    RewriteEngine on
    #RewriteBase /
    RewriteRule ^(.+)\.html$ index.php?event=file&zapros=$1
    RewriteRule ^(.+)\/$ index.php?event=dir&zapros=$1
    
    
    The file is part of the package, created by Rumba Wiki authors.

    And it's not working correctly: something like "index.php?event=repplus&zapros=start&znak=plus" points me to the root index.html file in /web.
     

Share This Page