当前位置:网站首页>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'];
}
?>
边栏推荐
- Alibaba cloud SLB load balancing product basic concept and purchase process
- Hundred days to complete the open source task of the domestic database opengauss -- openguass minimalist version 3.0.0 installation tutorial
- 关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
- C# 对象存储
- Laravel document reading notes -mews/captcha use (verification code function)
- SAP UI5 ObjectPageLayout 控件使用方法分享
- Default parameters of function & multiple methods of function parameters
- How to realize batch sending when fishing
- 【Hot100】33. 搜索旋转排序数组
- 946. Verify stack sequence
猜你喜欢
关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
Asemi rectifier bridge hd06 parameters, hd06 pictures, hd06 applications
946. Verify stack sequence
Introduction to sap ui5 flexiblecolumnlayout control
SAP UI5 DynamicPage 控件介绍
Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
Hundred days to complete the open source task of the domestic database opengauss -- openguass minimalist version 3.0.0 installation tutorial
leetcode:221. 最大正方形【dp状态转移的精髓】
Leetcode20. Valid parentheses
随机推荐
Concurrent performance test of SAP Spartacus with JMeter
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
Principle and configuration of RSTP protocol
C# 对象存储
Laravel document reading notes -mews/captcha use (verification code function)
Put functions in modules
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
STM32 and motor development (from architecture diagram to documentation)
mysql econnreset_Nodejs 套接字报错处理 Error: read ECONNRESET
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
Android本地Sqlite数据库的备份和还原
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
【Hot100】33. 搜索旋转排序数组
Word document injection (tracking word documents) incomplete
CloudCompare——点云切片
Natural language processing from Xiaobai to proficient (4): using machine learning to classify Chinese email content
逆波兰表达式
RHCSA5
946. Verify stack sequence
RHCSA10