Mod rewrite 从ubuntu中laravel的url中删除index.php
我尝试了几种从URL中删除index.php的方法 问题样 url不起作用(我想要这个): url正在工作(我不想这样): 1) 我已经尝试重新编写_mod,但它已经启用 2) 我已尝试将此代码写入.htaccess文件,但问题并没有得到解决 选项-多视图 重新启动发动机Mod rewrite 从ubuntu中laravel的url中删除index.php,mod-rewrite,ubuntu,url-rewriting,laravel,Mod Rewrite,Ubuntu,Url Rewriting,Laravel,我尝试了几种从URL中删除index.php的方法 问题样 url不起作用(我想要这个): url正在工作(我不想这样): 1) 我已经尝试重新编写_mod,但它已经启用 2) 我已尝试将此代码写入.htaccess文件,但问题并没有得到解决 选项-多视图 重新启动发动机 RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModul
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L] </IfModule>
RewriteCond%{REQUEST\u FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^index.php[L]
任何文件安装是否剩余??那么告诉我??(但我已经安装了所有设备。)
我的默认文件是:
ServerAdminwebmaster@localhost
ServerName mydomain.in
DocumentRoot/var/www/mysite/public
选项如下符号链接
不允许超限
选项索引跟随符号链接多视图
不允许超限
命令允许,拒绝
通融
ScriptAlias/cgi-bin//usr/lib/cgi-bin/
不允许超限
选项+执行CGI-多视图+符号链接所有者匹配
命令允许,拒绝
通融
ErrorLog${APACHE_LOG_DIR}/error.LOG
#可能的值包括:调试、信息、通知、警告、错误、临界值、,
#警惕,埃默格。
日志级别警告
CustomLog${APACHE\u LOG\u DIR}/access.LOG组合
别名/doc/“/usr/share/doc/”
选项索引多视图跟随符号链接
不允许超限
命令拒绝,允许所有人拒绝
允许从127.0.0.0/255.0.0.0::1/128开始
请给我一个解决方案
谢谢朋友们 检查.htaccess权限是否设置为www数据(或相应的Apache用户)检查.htaccess权限是否设置为www数据(或相应的Apache用户)将AllowOverride更改为all而不是none
Jason Lewis将AllowOverride更改为all而不是none
Jason Lewis将
AllowOverride更改为all
而不是none
。正确的先生………将AllowOverride
更改为all
而不是none
。正确的先生。。。。。。。。。。。。。
ServerAdmin webmaster@localhost
ServerName mydomain.in
DocumentRoot /var/www/mysite/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/mysite/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>