Laravel 拉韦尔酒店
请在下面找到我的Laravel网站URL:www.webrox.ae 这个网站的问题是。。它打开/index.php,并为所有菜单项打开name/oservices/public/portfolio,如portfolio或hire-us等。。像这样的 下面是我的htaccess文件 请引导Laravel 拉韦尔酒店,laravel,.htaccess,Laravel,.htaccess,请在下面找到我的Laravel网站URL:www.webrox.ae 这个网站的问题是。。它打开/index.php,并为所有菜单项打开name/oservices/public/portfolio,如portfolio或hire-us等。。像这样的 下面是我的htaccess文件 请引导 #Alternate default index page DirectoryIndex www.webrox.ae/index.php # BlueHost.com # .htac
#Alternate default index page
DirectoryIndex www.webrox.ae/index.php
# BlueHost.com
# .htaccess main domain to subdirectory redirect
# Do not change this line.
RewriteEngine on
# Change example.com to be your main domain.
# Change 'subdirectory' to be the directory you will use for your main domain.
# Don't change the following two lines.
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?webrox.ae$
RewriteCond %{REQUEST_URI} !^/oservice/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /oservice/public/$1
# Change example.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?webrox.ae$
RewriteRule ^(/)?$ webrox.ae/index.php [L]
RewriteCond %{HTTP_HOST} ^www\.webrox\.ae$
RewriteRule ^/?$ "http\:\/\/webrox\.ae\/" [R=301,L]
谢谢将线路从
RewriteCond %{REQUEST_URI} !^/oservice/public/
RewriteRule ^(/)?$ webrox.ae/index.php [L]
到
并添加行
RewriteRule ^ index.php [L]
您能分享一下您是如何在主页中使用
anchor
tag()的href属性的吗?您是指index.php吗?这是一个lravel,所以在从DirectoryIndex中删除/index.php后,请告诉我您正在谈论的路径。默认情况下,这将需要一段时间。我不确定,但您可以尝试创建bolg时生成的默认htaccess
RewriteRule ^ index.php [L]