2016-04-11 6 views

答えて

2

をチームに良い解決策が.htaccess文書内のURL書き換えスキームを使用することができ、ありがとうございました。以下は、仕事ができるようなソリューション:

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule (.*)/custom$ /$1-test.php [QSA,NC,L] 
</IfModule> 

これは、次が真であることを原因となります。

Original : www.lorem.com/index.php 
Duplicate : www.lorem.com/index-test.php (When /custom is appended, this page is shown) 

は、URL書き換えの参照のためにこれを見ている:https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/

関連する問題