1godaddy主机ram
I recently launched a new website on GoDaddy shared hosting. The website required mod_rewrite for SEO-friendly URLs. GoDaddy provides mod_rewrite but every time I tried to hit a two-deep URL, I would get a 404 error. Here's what I had:
我最近在GoDaddy共享主机上启动了一个新网站。 该网站需要mod_rewrite才能使用SEO友好的URL。 GoDaddy提供了mod_rewrite,但是每次我尝试访问两个深的URL时,都会收到404错误。 这是我所拥有的:
# Mod Rewrite
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
The fix to this problem was to add the following directive before my mod_rewrite directives:
解决此问题的方法是在我的mod_rewrite指令之前添加以下指令:
#Fix Rewrite
Options -Multiviews
Tada! The URLs began working and the website's SEO has taken off!
多田 URL开始起作用,并且网站的SEO起飞了!
1godaddy主机ram