htaccess将找不到的所有404重定向到特定的URL

问题描述 投票:0回答:1

我需要将所有qazxsw poito重定向到与用户体验更相关的特定URL。

这重定向到特定的index.php

404 not found

如何将所有404找不到的页面而不是index.php重定向到特定的URL,如:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>

apache .htaccess mod-rewrite
1个回答
0
投票

你可以试试这段代码:

https://www.example.com/jobs

希望这可以帮助:)

© www.soinside.com 2019 - 2024. All rights reserved.