Cakephp2のリライトに関してのご質問です。
https://book.cakephp.org/2.0/ja/installation/url-rewriting.html
上記URLをみて設定し動作はしているのですが、サーバ側の担当よりhtaccessは使えない(mod_rewriteは利用可)とのご指摘があり
apacheの設定ファイル(/etc/httpd/conf/httpd.conf)に設定が必要とのことにより
httpd.conf上に設定を行っておりますがうまくいかず、ご教授いただけると幸いです。
DocumentRoot /data/user/html
cakephpのwebroot /data/user/html/app/webroot
/etc/httpd/httpd.conf <Directory "/data/user/html"> AllowOverride none Require all granted RewriteEngine on RewriteRule ^$ /app/webroot/ [L] RewriteRule (.*) /app/webroot/$1 [L] RewriteRule ^ /app/webroot/index.php [L] </Directory>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/21 03:23