Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 22nd June 2009, 14:13
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

@ jvdk,

Someone told me when I had the same problem "comment out all lines, then uncomment line after line to find the evil ( error 500 causing ) one"
Lucky for me I had a small .htaccess file but it worked for me.

Succes !
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
Sponsored Links
  #12  
Old 22nd June 2009, 14:19
jvdkdesign jvdkdesign is offline
Junior Member
 
Join Date: Jun 2009
Posts: 23
Thanks: 4
Thanked 1 Time in 1 Post
Default

Damn..

But the file comes from a external company..

I will comment al the lines out till i don't have any error
Reply With Quote
  #13  
Old 22nd June 2009, 14:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,494
Thanks: 835
Thanked 5,534 Times in 4,352 Posts
Default

Quote:
Originally Posted by jvdkdesign View Post
Code:
[alert] [client 94.209.157.94] /var/www/haaglandenvoetbalt.tv/web/.htaccess: Options not allowed here, referer: http://www.haaglandenvoetbalt.tv/
Same error...

Thats impossible that you have options there if you deleted the .htaccess file. Delete that file after you copied the content into the apache directives field of the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
jvdkdesign (23rd June 2009)
  #14  
Old 22nd June 2009, 14:44
jvdkdesign jvdkdesign is offline
Junior Member
 
Join Date: Jun 2009
Posts: 23
Thanks: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
Thats impossible that you have options there if you deleted the .htaccess file. Delete that file after you copied the content into the apache directives field of the website.
I have moved the file to another extension (txt)
Before i copied the content into the apache directives..

Is that a problem?
Reply With Quote
  #15  
Old 22nd June 2009, 16:32
jvdkdesign jvdkdesign is offline
Junior Member
 
Join Date: Jun 2009
Posts: 23
Thanks: 4
Thanked 1 Time in 1 Post
Default

Code:
RewriteEngine on
#Category rewrite
RewriteCond %{REQUEST_URI} !.php
RewriteRule ^videos/([^/]+)/?$ index.php?id=7&crw=$1 [L]
RewriteRule ^videos/([^/]+)/([0-9]+)/?$ index.php?id=7&crw=$1&page=$2 [L]
RewriteRule ^videos/([^/]+)/_([^/]+)/?$ index.php?id=7&crw=$1&scrw=$2 [L]
RewriteRule ^videos/([^/]+)/_([^/]+)/([0-9]+)/?$ index.php?id=7&crw=$1&scrw=$2&page=$3 [L]

#Individual media
RewriteCond %{REQUEST_URI} !.php

RewriteRule ^play/([^/]+)/_([^/]+)/__([^/]+)/([^/]+)/___([^/]+)/([0-9]+)/?$ index.php?id=8&crw=$1&scrw=$2&sscrw=$3&vrw=$4&tab=$5&num=$6 [L]
RewriteRule ^play/([^/]+)/_([^/]+)/__([^/]+)/([^/]+)/___([^/]+)/?$ index.php?id=8&crw=$1&scrw=$2&sscrw=$3&vrw=$4&tab=$5 [L]
RewriteRule ^play/([^/]+)/_([^/]+)/([^/]+)/(___[^/]+)/([0-9]+)/?$ index.php?id=8&crw=$1&scrw=$2&vrw=$3&tab=$4&num=$5 [L]
RewriteRule ^play/([^/]+)/_([^/]+)/__([^/]+)/([^/]+)/?$ index.php?id=8&crw=$1&scrw=$2&sscrw=$3&vrw=$4 [L]
RewriteRule ^play/([^/]+)/_([^/]+)/([^/]+)/___([^/]+)/?$ index.php?id=8&crw=$1&scrw=$2&vrw=$3&tab=$4 [L]
RewriteRule ^play/([^/]+)/([^/]+)/___([^/]+)/([0-9]+)/?$ index.php?id=8&crw=$1&vrw=$2&tab=$3&num=$4 [L]
RewriteRule ^play/([^/]+)/___([^/]+)/([0-9]+)/?$ index.php?id=8&vrw=$1&tab=$2&num=$3 [L]
RewriteRule ^play/([^/]+)/([^/]+)/___([^/]+)/?$ index.php?id=8&crw=$1&vrw=$2&tab=$3 [L]
RewriteRule ^play/([^/]+)/_([^/]+)/([^/]+)/?$ index.php?id=8&crw=$1&scrw=$2&vrw=$3 [L]
RewriteRule ^play/([^/]+)/___([^/]+)/?$ index.php?id=8&vrw=$1&tab=$2 [L]
RewriteRule ^play/([^/]+)/([^/]+)/?$ index.php?id=8&crw=$1&vrw=$2 [L]
RewriteRule ^play/([^/]+)/?$ index.php?id=8&vrw=$1 [L]
RewriteRule ^showimage/([^/]+)/?$ image.php?image=$1 [L]

#Individual group
RewriteCond %{REQUEST_URI} !.php
RewriteRule ^showgroup/([^/]+)/_([^/]+)/?$ index.php?id=20&grp=$1&filter=$2 [L]
RewriteRule ^showgroup/([^/]+)/([^/]+)/_([^/]+)/?$ index.php?id=20&grp=$1&cmd=$2&filter=$3 [L]
RewriteRule ^showgroup/([^/]+)/([^/]+)/_([^/]+)/([0-9]+)/?$ index.php?id=20&grp=$1&cmd=$2&filter=$3&page=$4 [L]
RewriteRule ^showgroup/([^/]+)/_([^/]+)/([0-9]+)/?$ index.php?id=20&grp=$1&filter=$2&page=$3 [L]
RewriteRule ^showgroup/([^/]+)/?$ index.php?id=20&grp=$1 [L]
RewriteRule ^showgroup/([^/]+)/([^/]+)/?$ index.php?id=20&grp=$1&cmd=$2 [L]
RewriteRule ^showgroup/([^/]+)/([^/]+)/([0-9]+)/?$ index.php?id=20&grp=$1&cmd=$2&page=$3 [L]
RewriteRule ^showgroup/([^/]+)/([0-9]+)/?$ index.php?id=20&grp=$1&page=$2 [L]


#This is for all the pages
RewriteCond %{REQUEST_URI} !.php
RewriteRule ^latest/?$ index.php?id=1 [L]
RewriteRule ^members/_([^/]+)/__([^/]+)/?$ index.php?id=88&filter=$1&nsearch=$2 [L]
RewriteRule ^members/_([^/]+)/__([^/]+)/([0-9]+)/?$ index.php?id=88&filter=$1&nsearch=$2&page=$3 [L]
RewriteRule ^members/_([^/]+)/___([^/]+)/?$ index.php?id=88&filter=$1&lsearch=$2 [L]
RewriteRule ^members/_([^/]+)/___([^/]+)/([0-9]+)/?$ index.php?id=88&filter=$1&lsearch=$2&page=$3 [L]
RewriteRule ^members/_([^/]+)/__([^/]+)/___([^/]+)/?$ index.php?id=88&filter=$1&nsearch=$2&lsearch=$3 [L]
RewriteRule ^members/_([^/]+)/__([^/]+)/___([^/]+)/([0-9]+)/?$ index.php?id=88&filter=$1&nsearch=$2&lsearch=$3&page=$4 [L]
RewriteRule ^members/_([^/]+)/?$ index.php?id=88&filter=$1 [L]
RewriteRule ^members/_([^/]+)/([0-9]+)/?$ index.php?id=88&filter=$1&page=$2 [L]
RewriteRule ^members/?$ index.php?id=88 [L]
RewriteRule ^members/([0-9]+)/?$ index.php?id=19&page=$1 [L]
RewriteRule ^groups/_([^/]+)/__([^/]+)/?$ index.php?id=19&filter=$1&search=$2 [L]
RewriteRule ^groups/_([^/]+)/__([^/]+)/([0-9]+)/?$ index.php?id=19&filter=$1&search=$2&page=$3 [L]
RewriteRule ^groups/_([^/]+)/?$ index.php?id=19&filter=$1 [L]
RewriteRule ^groups/_([^/]+)/([0-9]+)/?$ index.php?id=19&filter=$1&page=$2 [L]
RewriteRule ^groups/?$ index.php?id=19 [L]
RewriteRule ^groups/([0-9]+)/?$ index.php?id=19&page=$1 [L]
RewriteRule ^search/?$ index.php?id=22 [L]
RewriteRule ^search/([0-9]+)/?$ index.php?id=22&page=$1 [L]
RewriteRule ^search/([^/]+)/?$ index.php?id=22&keywords=$1 [L]
RewriteRule ^search/([^/]+)/([0-9]+)/?$ index.php?id=22&keywords=$1&page=$2 [L]

RewriteRule ^account/?$ index.php?id=56 [L]

RewriteRule ^latest/([0-9]+)/?$ index.php?id=1&page=$1 [L]
RewriteRule ^top_rated/?$ index.php?id=2 [L]
RewriteRule ^top_rated/([0-9]+)/?$ index.php?id=2&page=$1 [L]
RewriteRule ^most_viewed/_([^/]+)/?$ index.php?id=3&filter=$1 [L]
RewriteRule ^most_viewed/?$ index.php?id=3 [L]
RewriteRule ^most_viewed/_([^/]+)/([0-9]+)/?$ index.php?id=3&filter=$1&page=$2 [L]
RewriteRule ^most_viewed/([0-9]+)/?$ index.php?id=3&page=$1 [L]

RewriteRule ^category/([^/]+)/_([^/]+)/__([^/]+)/___([^/]+)/([0-9]+)/?$ index.php?id=21&crw=$1&scrw=$2&sscrw=$3&filter=$4&page=$5 [L]
RewriteRule ^category/([^/]+)/_([^/]+)/__([^/]+)/([0-9]+)/?$ index.php?id=21&crw=$1&scrw=$2&sscrw=$3&page=$4 [L]
RewriteRule ^category/([^/]+)/_([^/]+)/__([^/]+)/___([^/]+)/?$ index.php?id=21&crw=$1&scrw=$2&sscrw=$3&filter=$4 [L]
RewriteRule ^category/([^/]+)/_([^/]+)/__([^/]+)/?$ index.php?id=21&crw=$1&scrw=$2&sscrw=$3 [L]

RewriteRule ^category/([^/]+)/_([^/]+)/___([^/]+)/([0-9]+)/?$ index.php?id=21&crw=$1&scrw=$2&filter=$3&page=$4 [L]
RewriteRule ^category/([^/]+)/_([^/]+)/([0-9]+)/?$ index.php?id=21&crw=$1&scrw=$2&page=$3 [L]
RewriteRule ^category/([^/]+)/_([^/]+)/___([^/]+)/?$ index.php?id=21&crw=$1&scrw=$2&filter=$3 [L]
RewriteRule ^category/([^/]+)/_([^/]+)/?$ index.php?id=21&crw=$1&scrw=$2 [L]

RewriteRule ^category/([^/]+)/___([^/]+)/([0-9]+)/?$ index.php?id=21&crw=$1&filter=$2&page=$3 [L]
RewriteRule ^category/([^/]+)/([0-9]+)/?$ index.php?id=21&crw=$1&page=$2 [L]
RewriteRule ^category/([^/]+)/___([^/]+)/?$ index.php?id=21&crw=$1&filter=$2 [L]
RewriteRule ^category/([^/]+)/?$ index.php?id=21&crw=$1 [L]


######################
#Tags Re-Write J-Mods#
######################
RewriteRule ^tags/?$ index.php?id=24 [L]
RewriteRule ^add/?$ index.php?id=25 [L]
Options +FollowSymlinks
RewriteCond %{QUERY_STRING} url=(.*)
RewriteRule ^out(.*) index.php?id=26&url=%1 [L]
RewriteRule ^allfriends/?$ index.php?id=27 [L]
Options +FollowSymlinks
RewriteCond %{QUERY_STRING} vid=(.*)
RewriteRule ^changead(.*) index.php?id=28&vid=%1 [L]
Options +FollowSymlinks
RewriteCond %{QUERY_STRING} feed=(.*)
RewriteRule ^rss(.*) rss.php?feed=%1 [L]
RewriteRule ^rss/?$ index.php?id=29 [L]
Options +FollowSymlinks
RewriteCond %{QUERY_STRING} del=(.*)
RewriteRule ^news/?$ index.php?id=30&del=%1 [L]
RewriteRule ^news/?$ index.php?id=30 [L]
Options +FollowSymlinks
RewriteCond %{QUERY_STRING} edit=(.*)
RewriteRule ^edit/?$ index.php?id=31&edit=%1 [L]
####################
# Do Not Edit      #
####################

RewriteRule ^forgot/?$ index.php?id=4 [L]
RewriteRule ^upload/?$ index.phpid=5[L]
RewriteRule ^register/?$ index.php?id=6 [L]
RewriteRule ^logout/?$ index.php?logout=1 [L]
RewriteRule ^help/?$ index.php?id=15 [L]
	RewriteRule ^tellafriend/(.+)/?$ index.php?id=11&mediaurl=$1 [L]
RewriteRule ^terms/?$ index.php?id=16 [L]
RewriteRule ^contact/?$ index.php?id=17 [L]
RewriteRule ^history/?$ index.php?id=50 [L]
RewriteRule ^history/([0-9]+)/?$ index.php?id=50&page=$1 [L]
RewriteRule ^favorites/?$ index.php?id=51&page=1 [L]
RewriteRule ^favorites/([0-9]+)/?$ index.php?id=51&page=$1 [L] 

RewriteRule ^usermenu/?$ index.php?id=55 [L]
RewriteRule ^usermenu/([a-z]+)/?$ index.php?id=55&action=$1 [L]
RewriteRule ^usermenu/([a-z]+)/([0-9]+)/?$ index.php?id=55&action=$1&page=$2 [L]
RewriteRule ^usermenu/([a-z]+)/([0-9]+)/([0-9]+)/?$ index.php?id=55&action=$1&page=$2&page2=$3 [L]

#New Profile
RewriteRule ^profile/([A-z0-9_-]+)/([a-z]+)/_([^/]+)/([0-9]+)/?$ index.php?id=18&user=$1&act=$2&opt=$3&page=$4 [L]
RewriteRule ^profile/([A-z0-9_-]+)/([a-z]+)/_([^/]+)/?$ index.php?id=18&user=$1&act=$2&opt=$3 [L]
RewriteRule ^profile/([A-z0-9_-]+)/([a-z]+)/([0-9]+)/?$ index.php?id=18&user=$1&act=$2&page=$3 [L]
RewriteRule ^profile/([A-z0-9_-]+)/([a-z]+)/?$ index.php?id=18&user=$1&act=$2 [L]
RewriteRule ^profile/([A-z0-9_-]+)/([0-9]+)/?$ index.php?id=18&user=$1&page=$2 [L]
RewriteRule ^profile/([A-z0-9_-]+)/?$ index.php?id=18&user=$1 [L]


<Files *.module>
	deny from all
</Files>
Options All -Indexes
<files *.inc>
order allow,deny
deny from all
</files>
Code:
[Mon Jun 22 15:23:45 2009] [error] [client 145.12.10.1] File does not exist: /var/www/haaglandenvoetbalt.tv/web/profile, referer: http://www.haaglandenvoetbalt.tv/
And the website:
www.haaglandenvoetbalt.tv

How can i check if mod_rewrite works?

Thnnx in Advance..

John
Reply With Quote
  #16  
Old 23rd June 2009, 09:42
jvdkdesign jvdkdesign is offline
Junior Member
 
Join Date: Jun 2009
Posts: 23
Thanks: 4
Thanked 1 Time in 1 Post
Default

*update*
The website is working:
http://haaglandenvoetbalt.tv/

But, still no mod_rewrite..
You can see it if you click on a link.

I don't understand the problem...
Error logs said the he can't find the page, but that is logic if the mod_rewrite doens't work.

If i'm checking phpinfo; you see that there is a mod_rewrite module..
www.hethaagsamateurvoetbal.com/phpinfo.php

:-(
Reply With Quote
  #17  
Old 23rd June 2009, 10:01
wouterw wouterw is offline
HowtoForge Supporter
 
Join Date: Jun 2009
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default

The problem is not related to the rewrite rules, but to the Options directives like Options All -Indexes. Comments only those lines out in your .htaccess.

You can try to reenable them by entering the correct values in the ISPconfig admin: Website -> Options -> Apache Directives
Reply With Quote
  #18  
Old 23rd June 2009, 10:17
jvdkdesign jvdkdesign is offline
Junior Member
 
Join Date: Jun 2009
Posts: 23
Thanks: 4
Thanked 1 Time in 1 Post
Default

I have commented it out.. no effect.
Or do you need always start the apache after a change?
Reply With Quote
  #19  
Old 23rd June 2009, 10:25
wouterw wouterw is offline
HowtoForge Supporter
 
Join Date: Jun 2009
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by jvdkdesign View Post
I have commented it out.. no effect.
Try to localize the problem. You have two error messages:

/var/www/haaglandenvoetbalt.tv/web/.htaccess: Options not allowed here
This is related to one or more Options directives in your .htaccess file. Remove it there.

File does not exist: /var/www/haaglandenvoetbalt.tv/web/profile
This is because you removed or disabled the rewrite rules.

Quote:
Or do you need always start the apache after a change?
No, for .htaccess files you do not have to restart apache.
Reply With Quote
The Following User Says Thank You to wouterw For This Useful Post:
jvdkdesign (23rd June 2009)
  #20  
Old 23rd June 2009, 10:55
jvdkdesign jvdkdesign is offline
Junior Member
 
Join Date: Jun 2009
Posts: 23
Thanks: 4
Thanked 1 Time in 1 Post
 
Default

Quote:
/var/www/haaglandenvoetbalt.tv/web/.htaccess: Options not allowed here
This is related to one or more Options directives in your .htaccess file. Remove it there.
There is no .htaccess file in the directory; only the apache directes..


Quote:
File does not exist: /var/www/haaglandenvoetbalt.tv/web/profile
This is because you removed or disabled the rewrite rules.
I 'll check this one
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet Another Internal Server Error/.htaccess Post n0h4t Installation/Configuration 5 16th June 2009 18:43
ftp is very slow and asks for user/passwd continuously chico58 Installation/Configuration 7 8th October 2008 13:43
how to enable Mod Rewrite AngelDrago Installation/Configuration 9 11th August 2007 00:20
viewing a htaccess file in the ftp Boon-Dog-Danny Installation/Configuration 19 17th August 2006 18:33
ispconfig and mambo shajazzi Installation/Configuration 70 28th March 2006 20:29


All times are GMT +2. The time now is 15:48.


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