次のようなことを行うにはどうすればよいですか: website.com/store/ website.com/store にリダイレクト website.com/outbound/store/5
私が望むのは、末尾のスラッシュを削除するための接頭辞のない URL と、末尾のスラッシュを追加するための接頭辞を持つ URL です。
私の .htaccess:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)/$ /$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^pa/?$ /admin/index.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ stores.php?store=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^outbound/([^/]*)/([^/]*)$ /outbound.php?type=$1&id=$2 [L]