Skocz do zawartości
Hosting webh.pl - 20%

ROZWIĄZANY: .htaccess

Rekomendowane odpowiedzi

Opublikowano

Potrzebuje dopisac do pliku .htaccess następujące parametry. Pomoże mi ktoś je dodać? W ktorym to miejscu ma być? Niby dodaje a OVH pisze ze zle.

PHP 5.3
SetEnv PHP_VER 5_TEST
PHP 6
SetEnv PHP_VER 6
Proszę też pamietać, aby wyłączyć Zend:
SetEnv IONCUBE 1
SetEnv ZEND_OPTIMIZER 0

plik .HTACCESS

RewriteEngine On

RewriteRule ^admin/([a-z0-9]+)\.([a-z0-9]+)$ admin/index.php?mod=$1⊂=$2 [QSA,L]
RewriteRule ^(external|images|thumbs)/(.+)$ $1/$2 [QSA,L]
RewriteRule ^([a-z0-9]+)$ index.php?mod=$1 [QSA]
RewriteRule ^([0-9]+)/(.+) index.php?mod=play&id=$1 [QSA]
RewriteRule ^([a-z0-9]+)/([\sA-Za-z0-9_-]+)$ index.php?mod=$1⊂=$2 [QSA]
RewriteRule ^profile/([\s\.A-Za-z0-9_-]+)$ index.php?mod=profile⊂=$1 [QSA]
RewriteRule ^embed.php includes/embed.php [L]
RewriteRule ^sitemap.xml includes/sitemap.php [L]
RewriteRule ^feed includes/feed.php [L]
RewriteRule ^ajax/(.*)$ includes/ajax/$1 [QSA]
RewriteRule ^js/(.*)$ includes/js/$1 [QSA]
RewriteRule ^robots.txt includes/robots.txt [L]

## If your host allows you it is recommended to turn this on by removing the "#" at the beginning of the next 2 lines.
#php_value upload_max_filesize "20M"
#php_value post_max_size "20M"

## The next line removes directory indexes. To disable place a "#" at the beginning of the next line.
Options -Indexes

Opublikowano

Tak, czytałem

Opublikowano
  • Manager

Tak nie działa:

SetEnv PHP_VER 5_TEST
SetEnv IONCUBE 1
SetEnv ZEND_OPTIMIZER 0

RewriteEngine On

RewriteRule ^admin/([a-z0-9]+)\.([a-z0-9]+)$ admin/index.php?mod=$1&sub=$2 [QSA,L]
RewriteRule ^(external|images|thumbs)/(.+)$ $1/$2 [QSA,L]
RewriteRule ^([a-z0-9]+)$ index.php?mod=$1 [QSA]
RewriteRule ^([0-9]+)/(.+) index.php?mod=play&id=$1 [QSA]
RewriteRule ^([a-z0-9]+)/([\sA-Za-z0-9_-]+)$ index.php?mod=$1&sub=$2 [QSA]
RewriteRule ^profile/([\s\.A-Za-z0-9_-]+)$ index.php?mod=profile&sub=$1 [QSA]
RewriteRule ^embed.php includes/embed.php [L]
RewriteRule ^sitemap.xml includes/sitemap.php [L]
RewriteRule ^feed includes/feed.php [L]
RewriteRule ^ajax/(.*)$ includes/ajax/$1 [QSA]
RewriteRule ^js/(.*)$ includes/js/$1 [QSA]
RewriteRule ^robots.txt includes/robots.txt [L]

## If your host allows you it is recommended to turn this on by removing the "#" at the beginning of the next 2 lines.
#php_value upload_max_filesize "20M"
#php_value post_max_size "20M"

## The next line removes directory indexes. To disable place a "#" at the beginning of the next line.
Options -Indexes

?

intermedia - profesjonalne rozwiązania Invision Power Board, IC5

Opublikowano

Wtedy mi zwraca komunikat:

Site error: the file /homez.228/flashaul/www/install/index.php requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the site administrator.

A OVH pisał że ma IonCube (v. ?)

Opublikowano

Działa, flashaula.com :(

Opublikowano

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'flashaul_flash'@'10.0.75.15' (using password: YES) in /homez.228/flashaul/www/includes/libraries/database.php on line 0

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /homez.228/flashaul/www/includes/libraries/database.php on line 0
Sorry, but there is a problem with our script!

nie działa :(

Opublikowano

Już działa :(

Edytowane przez Flanger

Opublikowano

Przeinstaluje i bd ok

// na ohv nie pociagnie, limity polaczen

Edytowane przez Flanger

Opublikowano

Nie mam pojęcia ale wtedy zadziałało

  • 6 miesięcy temu...
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Szukaj

Szukaj

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.