これは私の.htaccessファイルは、次のようになります。ディレクトリ内のすべてのファイルのエイリアスを作成する方法は?
# Original
# If you modify this file then change the above line to: # Modified
<IfModule mod_rewrite.c>
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
# RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
</IfModule>
私は.htaccessファイルで書き換えルールで、私は長いURLを短縮するために使用することができURLエイリアスを作成することができますお読みください。このディレクトリのすべてのファイル(http://example.com/cache/Sitemaps/
)がhttp://example.com/*
に短縮(リダイレクトされないように)されるように、ワイルドカード書き換えルールを作成します。例えば
http://example.com/cache/Sitemaps/
に存在するファイルがある、私が欲しい:
http://example.com/cache/Sitemaps/file1.xml→http://example.com/file1.xml
http://example.com/cache/Sitemaps/file2.xml→http://example.com/file2.xml
http://example.com/cache/Sitemaps/file3.xml→ http://example.com/file3.xml
...などです! (→は「エイリアス」または「短縮」を表します)
どうすればよいですか? .htaccessファイル(上記参照)にどこを追加すればよいですか?ありがとう。ここで