Old 14th January 2009, 13:52
Shaggybb Shaggybb is offline
Junior Member
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default mod_rewrite

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:
    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?
Reply With Quote
Sponsored Links
Old 15th January 2009, 00:12
commentator commentator is offline
Senior Member
Join Date: Jul 2008
Location: The Netherlands
Posts: 146
Thanks: 49
Thanked 7 Times in 5 Posts

can you please show your .htaccess file contents here?
Reply With Quote
Old 24th February 2009, 21:55
tchouk tchouk is offline
Junior Member
Join Date: Feb 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts

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

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=plu s" points me to the root index.html file in /web.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 20:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.