【问题标题】:Joomla redirect index.php to index.php/blog using .htaccessJoomla 使用 .htaccess 将 index.php 重定向到 index.php/blog
【发布时间】:2013-12-17 15:10:05
【问题描述】:

我正在尝试使用 .htaccess 将我的 index.php 重定向到 index.php/blog..

RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+[\s?]
RewriteRule ^$ /index.php/blog [R=301,L]`       

此代码不起作用.. 请在这个问题上帮助我。

【问题讨论】:

    标签: .htaccess redirect joomla


    【解决方案1】:

    您可以在 .htaccess 中将此规则作为第一条规则进行尝试:

    RewriteEngine On
    
    RewriteCond %{THE_REQUEST} \s/+(index\.php)?[\s?]
    RewriteRule ^index\.php$ /index.php/blog/ [R=301,NC,L]
    
    RewriteRule ^(.*)$ /store/$1 [L] 
    

    【讨论】:

    猜你喜欢
    • 2013-01-21
    • 1970-01-01
    • 1970-01-01
    • 2012-12-11
    • 2013-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多