I 'd like to ask you about the problem of removing index. php from pseudo static.
Source: Internet
Author: User
Ask for help. The problem of removing index. php in pseudo-static mode is as follows: ask for help from users in the batch mode and remove index. php in pseudo-static mode.
For example, change www.abc.com/index.php/list-3-3 to www.abc.com/list-3-3 through pseudo-static.
However, when I access www.abc.com/index.php/list-3-3netmask again after modification, I will go back to the main page,
Please refer to the following link for more information: www.abc.com/list-3-3. thank you.
Httpd. ini file in iis environment:
[ISAPI_Rewrite]
#3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd. ini and httpd. parse. errors files
# From accessing through HTTP
RewriteBase/
RewriteRule ^ (js/. * \. html $) $1 [L]
RewriteRule ^ (. * pai.html $/index. php/$1 [L]
I am nginx.
Rewrite ^/(. *) $/index. php/$1 last;
------ Solution --------------------
Rewrite ^/www.abc.com \/(. *) \/(. *) $ www.abc.com/#2 [L]
------ Solution --------------------
The new address is not automatically redirected.
It is the URL and hyperlink generated according to Pseudo-static rules in your program.
------ Solution --------------------
Pseudo-static is just a rule. you cannot use it as a dead state !!
I mean: for example, although you have configured pseudo-static, a connection on the page is www.abc.com/index.php/list-3-3.
It's useless even if you have written pseudo-static data !!!
------ Solution --------------------
If you are using Apache, the mod_rewrite.so module is loaded in the httpd. conf configuration file... Also, replace AllowOverride None with None... Finally, make sure your system supports url rewriting .. In this way, you can remove index. php.
------ Solution --------------------
I use WINDOWS and IIS, because LINUX is not highly efficient,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service