Ahoj, mám problém s nastavením a zprovozněním
mod_rewrite a .htaccessPročetl jsem spoušty návodů a dle mého mám vše správně, nicméně .htaccess ni stále nefunguje.
sudo a2enmod rewrite
píše
Module rewrite already enabled
upravil jsem
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
a restartoval
sudo /etc/init.d/apache2 restart
.htaccess obsahuje
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ ?page=$1
Mám Apache 2.4.7Loaded Modules core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5
mod_rewrite mod_setenvif mod_status mod_vhost_alias
www.neco.cz/index.php?page=stranka funguje, ale
www.neco.cz/stranka nefunguje.
Mám více webů s různými .htaccess, ani jeden nefunguje.
Nevíte někdo co bych měl ještě nastavit? Jsem už v koncích.