当前位置:网站首页>Get you started with Apache pseudo static configuration
Get you started with Apache pseudo static configuration
2022-07-05 13:10:00 【InfoQ】
Preface
modify Apache To configure
<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'];
}
?>
边栏推荐
- Didi open source Delta: AI developers can easily train natural language models
- 155. Minimum stack
- 关于 Notion-Like 工具的反思和畅想
- The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
- Overflow toolbar control in SAP ui5 view
- 手把手带你入门Apache伪静态的配置
- Flutter 绘制波浪移动动画效果,曲线和折线图
- 简单上手的页面请求和解析案例
- How to realize batch sending when fishing
- 从外卖点单浅谈伪需求
猜你喜欢
自然语言处理系列(一)入门概述
Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
RHCSA10
Association modeling method in SAP segw transaction code
RHCSA5
ASEMI整流桥HD06参数,HD06图片,HD06应用
Natural language processing series (I) introduction overview
Cf:a. the third three number problem
Solve Unicode decodeerror: 'GBK' codec can't decode byte 0xa2 in position 107
SAP UI5 DynamicPage 控件介绍
随机推荐
APICloud Studio3 API管理与调试使用教程
SAP UI5 DynamicPage 控件介紹
946. Verify stack sequence
Hiengine: comparable to the local cloud native memory database engine
前缀、中缀、后缀表达式「建议收藏」
js判断数组中是否存在某个元素(四种方法)
RHCSA9
Default parameters of function & multiple methods of function parameters
爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
STM32 and motor development (from architecture diagram to documentation)
Actual combat simulation │ JWT login authentication
I'm doing open source in Didi
How to choose note taking software? Comparison and evaluation of notion, flowus and WOLAI
A deep long article on the simplification and acceleration of join operation
Introduction to sap ui5 flexiblecolumnlayout control
初识Linkerd项目
开发者,云原生数据库是未来吗?
Overflow toolbar control in SAP ui5 view
OpenHarmony应用开发之Navigation组件详解
Principle and configuration of RSTP protocol