当前位置:网站首页>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'];
}
?>边栏推荐
- Flutter 绘制波浪移动动画效果,曲线和折线图
- DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
- Realize the addition of all numbers between 1 and number
- 【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
- 百日完成国产数据库opengausss的开源任务--openGuass极简版3.0.0安装教程
- Android本地Sqlite数据库的备份和还原
- Simple page request and parsing cases
- OpenHarmony应用开发之Navigation组件详解
- Concurrent performance test of SAP Spartacus with JMeter
- Asemi rectifier bridge hd06 parameters, hd06 pictures, hd06 applications
猜你喜欢

Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)

How can non-technical departments participate in Devops?

Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications

Why is your next computer a computer? Explore different remote operations

SAP UI5 DynamicPage 控件介紹

先写API文档还是先写代码?

PyCharm安装第三方库图解

初识Linkerd项目

Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article

数据湖(七):Iceberg概念及回顾什么是数据湖
随机推荐
946. Verify stack sequence
Simple page request and parsing cases
峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
How to realize batch sending when fishing
聊聊异步编程的 7 种实现方式
I'm doing open source in Didi
mysql econnreset_ Nodejs socket error handling error: read econnreset
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
SAP ui5 objectpagelayout control usage sharing
Rocky基础命令3
精彩速递|腾讯云数据库6月刊
使用Dom4j解析XML
LB10S-ASEMI整流桥LB10S
Reverse Polish notation
将函数放在模块中
实现 1~number 之间,所有数字的加和
Hundred days to complete the open source task of the domestic database opengauss -- openguass minimalist version 3.0.0 installation tutorial
#yyds干货盘点# 解决名企真题:搬圆桌
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
Leetcode20. Valid parentheses