Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem na serwerze 1and1
kijeju
post 18.08.2011, 15:04:03
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 17.08.2011

Ostrzeżenie: (0%)
-----


Witam serdecznie

Mam problem z aplikacją typu cms na frameworku o strukturze MVC wcześniej strona działała na serwerach home.pl i było ok problem pojawił się po przeniesieniu jej na serwer 1and1. Na przykład po przejściu w panel administracyjny www.mojastrona.pl/admin wywala mi błąd:

Not Found The requested URL /kunden/homepages/23/d374541848/htdocs/moja-strona.pl/moja-strona.pl/admin/index.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Wydaje mi się że problem leży w pliku .htaccess jednak nie znam się na tworzeniu reguł. Poniżej wpisy z pliku htaccess z katalogu www.mojastrona.pl/admin

RewriteEngine On
#RewriteBase /

RewriteRule (.js) - [L]
RewriteRule (.jpg) - [L]
RewriteRule (.gif) - [L]
RewriteRule (.png) - [L]
RewriteRule (.html) - [L]
RewriteRule (admin) - [L]

RewriteRule ^$ index.php?model=index&action=_default
RewriteRule ^([a-z\+\_]+)([\/]?)$ index.php?model=$1&action=_default

RewriteRule ^([a-z\+\_]+)/([a-z\_0-9]+)([\/]?)$ index.php?model=$1&action=$2
RewriteRule ^([a-z\+\_]+)/([a-z\_0-9]+)/([A-zZ-a0-9\&\=\,]+) index.php?model=$1&action=$2&$3

#php_flag magic_quotes_gpc off
#php_flag register_globals off

#php_flag zlib.output_compression on
#php_value zlib.output_compression_level 2

Podobny problem pojawia się w przypadku adresu: www.moja-strona.pl/index/kontakt natomiast reszta stron serwisu działa

Not Found The requested URL /index/kontakt was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Plik htaccess z głównego katalogu

RewriteEngine On
RewriteBase /

RewriteRule (.js) - [L]
RewriteRule (.jpg) - [L]
RewriteRule (.gif) - [L]
RewriteRule (.png) - [L]
RewriteRule (.html) - [L]
RewriteRule (admin) - [L]
RewriteRule (pay_ok.php) - [L]


RewriteRule ^ogloszenia/pokaz/([0-9]+)_(.*)$ ogloszenia/pokaz/id=$1
RewriteRule ^ogloszenia/pokaz2/([0-9]+)_(.*)$ ogloszenia/pokaz2/id=$1
RewriteRule ^ogloszenia/pokaz3/([0-9]+)_(.*)$ ogloszenia/pokaz3/id=$1
RewriteRule ^ogloszenia/pokaz4/([0-9]+)_(.*)$ ogloszenia/pokaz4/id=$1

RewriteRule ^$ index.php?model=index&action=_default
RewriteRule ^([a-z\+\_]+)([\/]?)$ index.php?model=$1&action=_default

RewriteRule ^([a-z\+\_]+)/([a-z\_0-9]+)([\/]?)$ index.php?model=$1&action=$2
RewriteRule ^([a-z\+\_]+)/([a-z\_0-9]+)/([A-zZ-a0-9\&\=\,\+]+) index.php?model=$1&action=$2&$3

#php_flag magic_quotes_gpc off
#php_flag register_globals off

#php_flag zlib.output_compression on
#php_value zlib.output_compression_level 2

Z góry dziękuję za pomoc
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 17:03