当前位置:网站首页>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'];
}
?>
边栏推荐
- Developers, is cloud native database the future?
- MySQL 巨坑:update 更新慎用影响行数做判断!!!
- SAP UI5 DynamicPage 控件介紹
- APICloud Studio3 WiFi真机同步和WiFi真机预览使用说明
- HiEngine:可媲美本地的云原生内存数据库引擎
- 初识Linkerd项目
- Association modeling method in SAP segw transaction code
- Default parameters of function & multiple methods of function parameters
- How to choose note taking software? Comparison and evaluation of notion, flowus and WOLAI
- Compile kernel modules separately
猜你喜欢
随机推荐
开发者,云原生数据库是未来吗?
Alibaba cloud SLB load balancing product basic concept and purchase process
How can non-technical departments participate in Devops?
Halcon template matching actual code (I)
Actual combat simulation │ JWT login authentication
Realize the addition of all numbers between 1 and number
Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
Changing JS code has no effect
OpenHarmony应用开发之Navigation组件详解
LB10S-ASEMI整流桥LB10S
函数传递参数小案例
There is no monitoring and no operation and maintenance. The following is the commonly used script monitoring in monitoring
实现 1~number 之间,所有数字的加和
Flutter 绘制波浪移动动画效果,曲线和折线图
leetcode:221. 最大正方形【dp状态转移的精髓】
Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
[cloud native] event publishing and subscription in Nacos -- observer mode
关于 Notion-Like 工具的反思和畅想
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
数据湖(七):Iceberg概念及回顾什么是数据湖