1 Ich kenn mich leider noch nicht so gut mit der htacces aus
Nun möchte ich am ende meiner URL .html haben das habe ich auch schon aber die index.php
soll nun auch verborgen werden das bekomme ich ja über showScriptName => ‘false’ und dann die apache config
nun wenn ich
<Directory "C:\Apache\htdocs\testdrive">
RewriteEngine on
# Verwende Verzeichnis oder Datei, wenn sie vorhanden sind
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Leite andernfalls auf index.php um
RewriteRule . index.php
</Directory>
Das in die httpd.conf schreibe das modul rewrite ist aktiv komme ich nicht mehr drauf Fehler Code 403 Forbidden.
'urlManager'=>array(
'urlFormat'=>'path', // use "path" format, e.g. "post/show?id=4" rather than "r=post/show&id=4"
'showScriptName'=>false, // do not show "index.php" in URLs
'appendParams' => false, // do not append parameters as name/value pairs (DO NOT CHANGE THIS)
'rules'=>array(
'admin/<controller:\w+>'=>'<controller>Admin/index',
'admin/<controller:\w+>/<id:\d+>'=>'<controller>Admin/view',
'admin/<controller:\w+>/<id:\d+>/<action:\w+>'=>'<controller>Admin/<action>',
'admin/<controller:\w+>/<action:\w+>'=>'<controller>Admin/<action>',
'<controller:\w+>'=>'<controller>/index',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<id:\d+>/<action:\w+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
'gii'=>'gii/default/login',
'gii/<controller:\w+>'=>'gii/<controller>',
'gii/<controller:\w+>/<action:\w+>'=>'gii/<controller>/<action>',
),
),
Das hab ich glaub ich hier ausm Wiki, aber is glaub ich ja net wichtig
Edit:
Natürlich hab ich noch ne htaccess die das Snippet da drin hat
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# Verwende Verzeichnis oder Datei, wenn sie vorhanden sind
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Leite andernfalls auf index.php um
RewriteRule . index.php