当前位置:网站首页>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'];
}
?>边栏推荐
猜你喜欢

Detailed explanation of navigation component of openharmony application development

【每日一题】1200. 最小绝对差

Actual combat simulation │ JWT login authentication
![[cloud native] use of Nacos taskmanager task management](/img/ad/24bdd4572ef9990238913cb7cd16f8.png)
[cloud native] use of Nacos taskmanager task management

关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益

Changing JS code has no effect

SAP UI5 视图里的 OverflowToolbar 控件

阿里云SLB负载均衡产品基本概念与购买流程

Didi open source Delta: AI developers can easily train natural language models

精彩速递|腾讯云数据库6月刊
随机推荐
事务的基本特性和隔离级别
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
946. Verify stack sequence
Get to know linkerd project for the first time
SAP UI5 FlexibleColumnLayout 控件介绍
My colleague didn't understand selenium for half a month, so I figured it out for him in half an hour! Easily showed a wave of operations of climbing Taobao [easy to understand]
mysql econnreset_Nodejs 套接字报错处理 Error: read ECONNRESET
How to choose note taking software? Comparison and evaluation of notion, flowus and WOLAI
RHCSA7
Rocky basics 1
Notion 类笔记软件如何选择?Notion 、FlowUs 、Wolai 对比评测
Didi open source Delta: AI developers can easily train natural language models
Small case of function transfer parameters
Word document injection (tracking word documents) incomplete
Write macro with word
JXL notes
C# 对象存储
Rocky基础知识1
STM32 and motor development (from architecture diagram to documentation)