Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to remove portal.php

Shulou Source: shulou.com Published: 2022-06-02 00:20:27 10月03日 Update

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!

Tags: File method content domain name article home page navigation value interest writing background suffix guy partner general document more server step comment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info Microsoft NVidia Xiaomi