Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to remove portal.php

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to remove portal.php, the article is very detailed, has a certain reference value, interested friends must read it!

The way to get rid of portal.php: first open the "httpd.conf" file; then add the statement "RewriteCond% {THE_REQUEST} ^ [Amurz] {3jue 9}\ / portal\ .php\ HTTP/" under htaccess.

Get rid of portal.php

If you are using apache or ngnix server software, the following methods may help you.

The configuration steps are as follows:

First, open the .htaccess file

In the conf file of apache, open httpd.conf

1. Replace all the AllowOverride None in the document with AllowOverride All

2. Remove the comments below

LoadModule rewrite_module modules/mod_rewrite.so

3. Restart apache

II. Htaccess writing method

Add under htaccess

RewriteEngine onRewriteCond% {THE_REQUEST} ^ [Amurz] {3 portal 9}\ / portal\ .php\ HTTP/RewriteRule ^ portal\ .php $http://www.abc.com/ [Rene301 Magi L]

Attached: general methods of hiding portal.php

1. First, set the default domain name in the background domain name.

2. Set the portal as the home page (do not check if available)

3. Create a new navigation link without suffix (than home page / www.abc.com) to add to the navigation, and set it to be available

The above is all the contents of the article "how to get rid of portal.php". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report