IP (FTP): 175.102.3.231
User name: Youyaxli
Password: 1r6wmki13y
Error Link: http://www.youyax.com/forum/List-index-f-4.shtml
Correct connection: http://www.youyax.com/forum/index.php/List-index-f-4.shtml
Action Purpose: Address bar rewrite remove index.php
How to: Edit the. htacess file for the root directory
Server: Linux host Apache 2.2.23 + Nginx1.0.15
Refer to: https://wvw.52host.net/knowledgebase.php?action=displayarticle&id=176
Httpd.ini the wording of the reference:
Rewriterule ^/forum/(index| List| content|admin| vote| message| Favor). *) $/forum/index\.php/$1 [L]
For the files inside, please do not maliciously change
Reply to discussion (solution)
It is recommended to rewrite only the URL at the end of the. html, so it's much better to solve. The premise is that your site supports pseudo-static
Can you look at it?
No, please return to the original! The home page is not accessible
has been restored.
Public_html/forum/.htaccess can't open the phone.
General wording
#如果目录存在就直接访问目录不进行RewriteRule
Rewritecond%{request_filename}!-d
#如果文件存在, the file is accessed directly without the following rewriterule. (Do not overwrite if file or file does not exist)
Rewritecond%{request_filename}!-f
#所有找不着实际路径的文件, the unified handing over to index.php processing
Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
Public_html/forum/.htaccess can't open the phone.
Will you be the Boss? What do you mean, you can't open it?
No, you will.
General wording
#如果目录存在就直接访问目录不进行RewriteRule
Rewritecond%{request_filename}!-d
#如果文件存在, the file is accessed directly without the following rewriterule. (Do not overwrite if file or file does not exist)
Rewritecond%{request_filename}!-f
#所有找不着实际路径的文件, unified to index ....
I tried a lot, just can't, it's URL rewrite, the next part seems to be the real file
No, you will.
It was because there was no. htacess file in that directory, it was deleted, so something went wrong.
Well, you're capable.
Just now I saw that it was deleted. Let's take it slow.
I saw a test directory under your forum and released it. Htacess and index.php
Explore HTTP://WWW.YOUYAX.COM/FORUM/TEST/A/B/C
Get
Array
(
.....
[Redirect_url] =/forum/test/a/b/c
....
[Request_uri] =/forum/test/a/b/c
[Script_filename] =/home2/youyaxli/public_html/forum/test/index.php
[Script_name] =/forum/test/index.php
....
[Orig_path_info] =/a/b/c
[Orig_path_translated] =/home2/youyaxli/public_html/forum/test/index.php
[Php_self] =/forum/test/index.php
[Request_time] = 1366441199
[argv] = = Array
(
)
[ARGC] = 0
)
How can it be said that it is the URL rewrite, the latter part of the seemingly must be real files ?