简体   繁体   English

我正在使用php和mysql.my开发网站,每个页面文件扩展名都以.php扩展名结尾如何避免这种情况?

[英]I am developing website using php and mysql.my each page file extension end with .php extension how do i avoid that?

I am developing website using php and mysql.my each page file extension end with .php extension how do i avoid that?what I have to do for that? 我正在使用php和mysql.my开发网站,每个页面文件扩展名以.php扩展名结尾如何避免这种情况?我该怎么办?

I don't have any framework language.I want to learn the mvc pattern. 我没有任何框架语言。我想学习mvc模式。 I want to know which framework is easy level because I always benefited by stack team.According to me stack team will give easy way for me. 我想知道哪个框架比较简单,因为我一直从堆栈团队中受益。根据我的观点,堆栈团队将为我提供简单的方法。

For ex: http://academy.in/services.php I have change to http://www.academy.in/services 例如: http : //academy.in/services.php我已更改为http://www.academy.in/services

You need to create a .htaccess file 您需要创建一个.htaccess文件

A bit like this.... 有点像这样...

Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteBase /

RewriteRule ^/?services/$ services.php [NC,L]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在重新设计HTML 中的一个PHP 网站。是否因为文件扩展名需要设置重定向? - I am redesigning a PHP website in HTML. Do I need to set up redirects because of the file extension? 如何更改php文件的扩展名 - How Do I change extension of php file 如何在 CentOS 8 上安装 PHP 7 的 MySQL 扩展? - How do I install the MySQL extension for PHP 7 on CentOS 8? 如何使用 .htaccess 或其他方式从网站 url 中删除 .php 扩展名 - How do I remove .php extension from the website url using .htaccess, or another way 如何在我的 Laravel 项目中安装 PHP 统计扩展? - How do I install PHP Statistics extension in my Laravel Project? 如何在开发 octobercms 网站时解决此作曲家错误,我使用的是 php 7.4 - how to solve this composer error when developing octobercms website ,i am using php 7.4 我正在为更新功能开发php页面 - I am developing php page for update function 我如何使用htaccess将html页面扩展名重定向到php - How can i redirect html page extension to php using htaccess 如何使用wordpress在没有.php文件扩展名的情况下获取get_page_template_slug()? - How do I get get_page_template_slug() without the .php file extension with wordpress? 我如何启用 php fileinfo 扩展 - how do i enable php fileinfo extension
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM