当前位置:网站首页>手把手带你入门Apache伪静态的配置
手把手带你入门Apache伪静态的配置
2022-07-05 12:47:00 【InfoQ】
前言
修改Apache配置
<Directory "D:/ApacheServer/web">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule index.html$ index.php
RewriteRule index-([1-9]+[0-9]*).html$ index.php?p=$1
RewriteRule ([a-z]{1,})-([0-9]{1,}).html$ index.php?action=$1&id=$2
</IfModule>
<?php
if ($_GET ['p']) {
echo "p : " . $_GET ['p'];
}
if ($_GET ['action']) {
echo "action : " . $_GET ['action'];
}
if ($_GET ['id']) {
echo "id : " . $_GET ['id'];
}
?>
边栏推荐
- stirring! 2022 open atom global open source summit registration is hot!
- Yyds dry goods inventory # solve the real problem of famous enterprises: move the round table
- LeetCode20.有效的括号
- 155. 最小栈
- 初识Linkerd项目
- Comprehensive upgrade of Taobao short video photosynthetic platform
- HiEngine:可媲美本地的云原生内存数据库引擎
- Hiengine: comparable to the local cloud native memory database engine
- How to protect user privacy without password authentication?
- 事务的基本特性和隔离级别
猜你喜欢
How to connect the API interface of Taobao open platform (super detailed)
How to protect user privacy without password authentication?
逆波兰表达式
2021-12-21 transaction record
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
Put functions in modules
Taobao order amount check error, avoid capital loss API
滴滴开源DELTA:AI开发者可轻松训练自然语言模型
Notes for preparation of information system project manager --- information knowledge
SAP UI5 DynamicPage 控件介紹
随机推荐
A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
阿里云SLB负载均衡产品基本概念与购买流程
Didi open source Delta: AI developers can easily train natural language models
RHCSA5
Taobao short video, why the worse the effect
Simply take stock reading notes (2/8)
函数的默认参数&函数参数的多种方法
Vonedao solves the problem of organizational development effectiveness
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
Introduction to sap ui5 dynamicpage control
SAP UI5 FlexibleColumnLayout 控件介绍
CVPR 2022 | single step 3D target recognizer based on sparse transformer
Pinduoduo flag insertion remarks API
Introduction aux contrôles de la page dynamique SAP ui5
Hiengine: comparable to the local cloud native memory database engine
Introduction to the principle of DNS
[cloud native] event publishing and subscription in Nacos -- observer mode
SAP ui5 objectpagelayout control usage sharing
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)
深度长文探讨Join运算的简化和提速