开发者

Subdomain with htaccess not working

开发者 https://www.devze.com 2023-02-18 11:49 出处:网络
I\'ve just setup a subdomain for my site. My problem is: when I go to http://xyz.site.com I didn\'t see anything. Only \"The link appears to be broken\".

I've just setup a subdomain for my site.

My problem is: when I go to http://xyz.site.com I didn't see anything. Only "The link appears to be broken". But when I go to http://xyz.site.com/index.html all it works fine.

The problem is in .htaccess:

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteRule ^([a-z0-9]+)/开发者_如何学Python?$ profile.php?id=$1 [NC]

If I comment the RewriteRule it works correctly.

How can I fix the htaccess? Maybe with a RewriteCond?

Thanks.


I will set a default page in .htaccess if I were you.

DirectoryIndex index.html

0

精彩评论

暂无评论...
验证码 换一张
取 消