![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 347 Pomógł: 0 Dołączył: 27.08.2005 Skąd: Inowrocław Ostrzeżenie: (0%) ![]() ![]() |
Mam problem z mod_rewrite na ovh.pl . Maja tam troche inna skladnie mod_rewrite, wiec to moze byc problemem
![]() to mam w .httaccess Kod RewriteEngine on RewriteBase /forum/ RewriteRule ^cat([0-9]*)\.htm$ /forum/index.php?c=$1 [L,QSA] # RewriteRule ^(forum|.*-vf)([0-9]+)-([0-9]+),([0-9]+)\.htm$ /forum/viewforum.php?f=$2&topicdays=$3&start=$4 [L,QSA] RewriteRule ^(forum|.*-vf)([0-9]+),([0-9]+)\.htm$ /forum/viewforum.php?f=$2&start=$3 [L,QSA] RewriteRule ^(forum|.*-vf)([0-9]+)\.htm$ /forum/viewforum.php?f=$2 [L,QSA] RewriteRule ^prev_topic/([0-9]+)\.htm$ /forum/viewtopic.php?t=$1&view=previous [L,QSA] RewriteRule ^next_topic/([0-9]+)\.htm$ /forum/viewtopic.php?t=$1&view=next [L,QSA] # # RewriteRule ^(topics[0-9]*/)?(.*-vt)?([0-9]+)-([0-9]+)-([a-zA-Z]+),([0-9]+)\.htm$ /forum/viewtopic.php?t=$3&postdays=$4&postorder=$5&start=$6 [L,QSA] RewriteRule ^(topics[0-9]*/)?(.*-vt)?([0-9]+)-([0-9]+)-([a-zA-Z]+)-([a-zA-Z0-9]+),([0-9]+)\.htm$ /forum/viewtopic.php?t=$3&start=$7&postdays=$4&postorder=$5&highlight=$6 [L,QSA] # RewriteRule ^(topics[0-9]*/)?(.*-vt)?([0-9]+),([0-9]+)\.htm$ /forum/viewtopic.php?t=$3&start=$4 [L,QSA] RewriteRule ^(topics[0-9]*/)?(.*-vt)?([0-9]+)\.htm$ /forum/viewtopic.php?t=$3 [L,QSA] RewriteRule ^postlink/([0-9]+)\.htm$ /forum/viewtopic.php?p=$1 [L,QSA] RewriteRule ^search\.htm/authors/(.+),([0-9]+)$ /forum/search.php?search_author=$1&start=$2 [L,QSA] # RewriteRule ^search\.htm/([0-9a-z]+),([0-9]+)$ /forum/search.php?search_id=$1&start=$2 [L,QSA] RewriteRule ^search\.htm/([0-9a-z]+)$ /forum/search.php?search_id=$1 [L,QSA] # # RewriteRule ^members/([a-z]+)_([a-z]*)-([A-Za-z]+),([0-9]+)\.htm$ /forum/memberlist.php?letter=$2&mode=$1&order=$3&start=$4 [L,QSA] RewriteRule ^members(\.htm|/?)$ /forum/memberlist.php [L,QSA] RewriteRule ^profiles/([0-9]+)\.htm$ /forum/profile.php?mode=viewprofile&u=$1 [L,QSA] RewriteRule ^groups/?([0-9]*)(\.htm)?$ /forum/groupcp.php?g=$1 [L,QSA] RewriteRule ^groups/?$ /forum/groupcp.php [L,QSA] # RewriteRule ^sitemap,([0-9]+)\.htm$ /forum/sitemap.php?offset=$1 [L,QSA] RewriteRule ^topics([0-9]+)/?$ /forum/viewforum.php?f=$1.htm [L,QSA] RewriteRule ^(topics|postlink|prev_topic|next_topic)/?$ /forum/index.php [L,QSA] RewriteRule ^profiles/?$ /forum/memberlist.php [L,QSA] #htm to php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} (.*)\.htm RewriteRule ^(.+)\.htm(\?.*)? $1.php$2 [E=WasHTML:yes] RewriteCond %{ENV:WasHTML} ^yes$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+)\.php(\?.*)? $1.htm$2 i działa poprawnie. Jednak chcialem umiescic forum w subdomenie, pozmienialem sciezki (kasujac "/forum ") i na subdomenie wywala error: Cytat IInternal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, tech@ovh.net and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log a gdy wchodze przez katalog i wybieram link odwoluje on sie do glownego katalogu (zamiast adres.pl/forum/plik.php to adres.pl/plik.php) wiec tutaj dziala OK. W czym moze tkwic problem? -------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 18.07.2025 - 01:19 |