簡體   English   中英

index.php 301重定向不適用於Joomla站點

[英]index.php 301 Redirect not working for Joomla site

我嘗試使用我的Joomla網站在.htaccess下面的代碼,但它根本不起作用:

Redirect 301 /index.php /

我也嘗試過:

Redirect 301 www.domain.com/index.php www.domain.com/

基本上我不想有重復的頁面,目前我可以使用index.php查看主頁。

我不知道為什么Joomla會這樣做,但它根本不起作用。 我也在Artio SEO組件下完成了301重定向,但它也不起作用。

嘗試這個:

<IfModule mod_rewrite.c>
  RewriteEngine on

  RewriteCond %{THE_REQUEST} ^.*/index.php
  RewriteRule ^(.*)index.php$ "http\:\/\/www\.yourdomain\.com\/$1" [R=301,L]
</IfModule>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM