Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 乔姆拉。赫塔克_.htaccess_Joomla_Url Rewriting - Fatal编程技术网

.htaccess 乔姆拉。赫塔克

.htaccess 乔姆拉。赫塔克,.htaccess,joomla,url-rewriting,.htaccess,Joomla,Url Rewriting,我需要一个有效的重写规则来删除url中的/index.php/category/部分 到 我不习惯使用htaccess文件,因此我为完全没有资源表示歉意 这是我当前的htaccess文件,其中的RewriteRule^streams/(.*)/?$/$1[L,NC,R] Options +FollowSymLinks ## Mod_rewrite in use. RewriteEngine On RewriteCond %{QUERY_STRING} base64_encode[^(]*\

我需要一个有效的重写规则来删除url中的
/index.php/category/
部分

我不习惯使用htaccess文件,因此我为完全没有资源表示歉意

这是我当前的htaccess文件,其中的
RewriteRule^streams/(.*)/?$/$1[L,NC,R]

Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

RewriteBase /

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^streams/(.*)/?$ /$1 [L,NC,R]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
Options+FollowSymLinks
##Mod_正在使用中重写。
重新启动发动机
RewriteCond%{QUERY\u STRING}base64\u encode[^(]*\([^)]*\)[或]
重写cond%{QUERY_STRING}(|%3E)[NC,或]
重写条件%{QUERY\u STRING}全局(|\[|\%[0-9A-Z]{0,2})[或]
重写条件%{QUERY\u STRING}\u请求(|\[|\%[0-9A-Z]{0,2})
重写基/
重写规则。*-[E=HTTP\U授权:%{HTTP:AUTHORIZATION}]
重写规则^streams/(.*)/?$/$1[L,NC,R]
重写cond%{REQUEST_URI}!^/index\.php
重写cond%{REQUEST_URI}/component/|(/[^.]*|\(php | html |提要| pdf | vcf |原始))$[NC]
重写cond%{REQUEST_FILENAME}!-f
重写cond%{REQUEST_FILENAME}!-d
重写规则。*index.php[L]
  • 使用Joomla的内置功能删除/index.php(在全局配置>站点下)

  • 重写规则^streams/(.*)$http://bruteforce.tv/$1[R=301,L]


  • 你为什么不使用Joomla功能删除index.php?我从这个开始。我不知道你指的是哪个功能。如果它的URL被重写,它就被启用。但是因此需要一个htaccess文件。我的错误。我忘记了在2.5中删除了那个特定的设置。也就是说,如果重写被启用,你就不应该看到/index.php。有人告诉我“您需要重定向和重写!”。仍然不知道如何做:谢谢你的快速回答!当我用上一个代码替换你的代码时,它不起作用。或者我可以用htaccess文件的整个代码替换你的代码吗?只是认为需要使用RewriteEngine On和RewriteBase/。如果我用google oomla feature remove index.php,它会显示我刚才所做的事情。启用URL在全局设置中重写,并将原始htaccess.txt重命名为.htaccess。尝试将这一行放在“重写引擎”的正下方。不要删除任何其他行。出于安全原因,这些行都在那里。您得到404的URL是什么?啊,等等。只得到404。其他3个链接可以工作,但/streams/仍然在那里。所以没有ng已更改。首先,您需要找出重写不起作用的原因。您不应该看到/index.php。排序完成后,请担心remvoving/streams/。我会将您的.htaccess文件替换为Joomla软件包下载文件的内容,然后重新开始。首先重命名现有文件以将其存档。
    bruteforce.tv/shinigamily
    bruteforce.tv/cash
    bruteforce.tv/blacktigrex
    bruteforce.tv/viktorwwe 
    
    Options +FollowSymLinks
    
    ## Mod_rewrite in use.
    
    RewriteEngine On
    
    RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
    RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    
    RewriteBase /
    
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteRule ^streams/(.*)/?$ /$1 [L,NC,R]
    RewriteCond %{REQUEST_URI} !^/index\.php
    RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php [L]