【发布时间】:2017-01-16 09:24:11
【问题描述】:
我正在尝试从我的 PHP 页面中删除扩展。
例如,www.mywebsite.com/verification.php
我希望人们能够通过www.mywebsite.com/verification 进行验证。
我的代码:
<?php session_start(); ?>
!DOCTYPE html
html lang="en"
head>
meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
【问题讨论】:
-
了解apache重写模块和重写规则
-
使用你的 .htaccess 文件
-
没有迹象表明 OP 正在使用 apache 或启用了 mod_rewrite,因此所有 cmets 和答案基本上都在跳跃。那么 OP 能否请教我们他们是否使用 apache 或其他东西?
-
添加了一个不使用 HTACCESS 文件的答案
标签: php html url file-extension