V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
OwO233
V2EX  ›  问与答

Typecho 使用地址重写之后 404 已经设置了 .htaccess

  •  
  •   OwO233 · Oct 23, 2021 · 1448 views
    This topic created in 1649 days ago, the information mentioned may be changed or developed.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    # 下面是在根目录,文件夹要修改路径
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
    </IfModule>
    

    代码如上,网络上搜索的,有朋友知道为啥设置了伪静态还是提示 404 吗?

    5 replies    2021-10-25 19:45:08 +08:00
    OwO233
        1
    OwO233  
    OP
       Oct 23, 2021
    呜呜呜,用的 Apache,想要弄成 wordpress 那种格式的。
    lostberryzz
        2
    lostberryzz  
       Oct 23, 2021
    Apache 用的人应该不多,配置也没几个人熟悉,换 Nginx 吧
    OwO233
        3
    OwO233  
    OP
       Oct 23, 2021
    @lostberryzz #2 找大佬写的防火墙需要用 Apache 。
    ysc3839
        4
    ysc3839  
       Oct 24, 2021
    试试 WordPress 提供的 .htaccess ?
    https://wordpress.org/support/article/htaccess/
    OwO233
        5
    OwO233  
    OP
       Oct 25, 2021
    @ysc3839 #4 不行啊,OwQ ,还是 404 ,算了,不弄了,可能是 apache 不配。OwQ
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1494 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 16:51 · PVG 00:51 · LAX 09:51 · JFK 12:51
    ♥ Do have faith in what you're doing.