0
我有一個網站,主頁是在site.pt/pt/home
所以我需要把.htaccess
,但我不知道如何...如何htaccess的重定向到特定的URL
我有這樣的代碼:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
我怎麼能這樣做?
謝謝。
這是你的主頁/ pt /首頁是什麼? –
我的主頁是site.pt/pt/home @MohammedElhag – user3242861
我知道它,你打算重定向到哪裏?你說的具體網址,它在哪裏? –