Kod
RewriteEngine on
DirectoryIndex index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)/?$ ?page=$1&id=$2 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/?$ ?page=$1 [L]
DirectoryIndex index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)/?$ ?page=$1&id=$2 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/?$ ?page=$1 [L]
Plik ten działał mi na localhoście (używam xamppa, pod ubuntu), ale jak wrzuciłem go na to konto ovh, pokazuje się taki komunikat (wchodząc na główną stronę mojej strony):
Cytat
The server encountered an internal error and was unable to complete your request
If you are owner of that account and you are looking for more information about Internal Server Error pleas visit http://60free.ovh.org/en/support/ or check if:
- attributes of file '/' are 705,
- attributes of directory are 705,
- in '.htaccess' file there is no any unavailable entries
If you are owner of that account and you are looking for more information about Internal Server Error pleas visit http://60free.ovh.org/en/support/ or check if:
- attributes of file '/' are 705,
- attributes of directory are 705,
- in '.htaccess' file there is no any unavailable entries
i w tym "attributes of file '/'" pojawia się to, co wpiszemy za adresem, np. wpisując result.ovh.org/team będzie tam linijka:
Cytat
- attributes of file '/team' are 705,
Adres tej strony: http://result.ovh.org/
Nadanie indeksowi chmoda 777 też nic nie dało. Co tu może być nie tak?