![]() |
![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 26.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Posiadam forum na skrypcie vbulletin, które znajduje sie na serwerze nazwa.pl w katalogu xxx. Czyli w kodzie htaccess musze użyc opcji RewriteBase /xxx/ . Niestety ale nie działa RewriteBase /xxx/ , RewriteBase /xxx, ani RewriteBase / - ciągle wywala 500 Internal Server Error . Nadmienie, ze wczesniej korzytsałem z modrewirite na forum(inny moduł) i mialem ustawione na RewriteBase / i wszystko działało. Kod # Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) RewriteBase /xxx/ RewriteCond %{HTTP_HOST} !^www\.mojastrona\.pl RewriteRule (.*) http://www.mojastrona.pl/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron) RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA] Dodam jeszcze, ze na serwerze mam kilka serwisów umieszczonych w kilku katalogach. ZAmienilem więc jeden serwis, który był w katalogu głównym serwera i wrzucilem tam forum zeby nie korzystac z opcji RewriteBase / i moduł rewrite działał poprawnie, tylko, ze po wpisaniu w przegladarce adresu do innego serwisu np. www.nazwastrony.pl to wyskakiwało www.mojastrona.pl/nazwaserwisu/ Czy mozna w htaccess ustawic tak, zeby nie bral on pod uwage okreslonych katalogów ? Moze ktos cos podpowie? Dzieki Maciek Ten post edytował LExy 11.07.2008, 16:19:25 |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 23 Pomógł: 3 Dołączył: 8.07.2008 Ostrzeżenie: (0%) ![]() ![]() |
a to nie mozesz utowrzyc .htaccess w tym katalogu co masz forum?
wtedy prawa wszystkie beda dot. tylko niego i powinno wszystko brykac. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 19:51 |