分享

写回答

发帖

[提问] godaddy linux空间的伪静态问题

GoDaddy GoDaddy 18873 人阅读 | 42 人回复

发表于 2009-12-23 22:50:33 | 显示全部楼层 |阅读模式

斑竹,请问下我的godaddy linux空间子站不知什么原因还是不能在为静态下访问,但是如果网站是放根目录下的,伪静态没问题。
我现在是在godaddy linux空间绑定的域名下建了一个文件夹all/,然后把网站安装到这个文件夹里,但是网站显示不了伪静态,请问是什么问题?

回答|共 42 个

victor2020

发表于 2009-12-23 22:59:37 | 显示全部楼层

请问下我的godaddy linux空间子站不知什么原因不能在伪静态下访问,但是如果网站是放根目录下的,伪静态没问题。
我现在是在godaddy linux空间绑定的域名下建了一个文件夹all/,然后把网站安装到这个文件夹里,但是网站显示不了伪静态,请问是什么问题?

add.c

发表于 2009-12-24 09:47:51 | 显示全部楼层

回复 2# 的帖子

伪静态你用的.htaccess 吧,这个文件也要放在子目录,而且要设置目录也是子目录

respr

发表于 2009-12-24 10:29:50 | 显示全部楼层

那个网站伪静态,那个目录里放.htaccess

victor2020

发表于 2009-12-24 13:31:50 | 显示全部楼层

是的,伪静态我用的是.htaccess,我现在已经把.htaccess这个文件放在eall这个文件夹里了,但是还是生成不了伪静态,是不是要改.htaccess这个文件还是要做什么设置?要怎么改,请指教,多谢!

add.c

发表于 2009-12-24 13:51:31 | 显示全部楼层

回复 5# 的帖子

修改下里面的目录。
参考你现在的提问,我应该这样回答,就那样改,就那样就好了
你什么都不提供 别人怎么告诉你

victor2020

发表于 2009-12-24 14:02:21 | 显示全部楼层

哈哈,斑竹,不是我不提供,是我不知道要提供什么,我是超级菜鸟呀,麻烦告诉我下,要提供什么信息在这里?
RAKSmart

victor2020

发表于 2009-12-24 15:12:26 | 显示全部楼层

斑竹,请指教,不知道是不是需要这些信息,我的.htaccess是这样的,感觉是没有设置一样:
Options -MultiViews +FollowSymlinks -Indexes

# Force 401 pages to use a valid error document
# so they do not fall back to the 404 which is
# triggered by ISC. This allows HTTP Auth to work
# correctly
ErrorDocument 401 "Unauthorized access"

<IfModule mod_security.c>
        # Turn off mod_security filtering.
        SecFilterEngine Off

        # The below probably isn't needed, but better safe than sorry.
        SecFilterScanPOST Off
</IfModule>

<IfModule mod_rewrite.c>
        RewriteEngine On
        # If your server is running PHP in CGI mode you will probably need to uncomment the following lines
        # Only uncomment lines that begine with Rewrite

        # The RewriteBase should be set to the same value as the AppPath setting in your config.php WITH a / on the end
        # RewriteBase /

        # This rewrite base rule is only required if you are getting 401 unauthorized errors when placing an order with Google Checkout
        # RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
        #
        # Alternatively, if the above does not work, try uncommenting this line below instead:
        # SetEnvIfNoCase Authorization "Basic ([a-z0-9=]+)" REMOTE_AUTHORIZATION=$1

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . index.php
        <IfModule mod_env.c>
                SetEnv SEO_SUPPORT 1
        </IfModule>
</IfModule>

<IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>

另外我的网站http://www.eallbay.com是放在/eall这个文件夹里,还需要其它的信息吗?

add.c

发表于 2009-12-24 15:20:04 | 显示全部楼层

# RewriteBase /
修改为
       RewriteBase /eall
并把.htaccess放到/eall目录

[ 本帖最后由 add.c 于 2009-12-24 04:14 PM 编辑 ]

victor2020

发表于 2009-12-24 15:33:23 | 显示全部楼层

# RewriteBase /eall,这个已经改了,另外.htaccess已经发到/eall文件夹里了,等等看是否生效
您需要登录后才可以回帖 登录 | 注册

本版积分规则