Home > CMS Tutorial > Discuz > How to remove portal.php

How to remove portal.php

藏色散人
Release: 2020-10-12 09:55:43
Original
4375 people have browsed it

Method to remove portal.php: First open the "httpd.conf" file; then add the statement "RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /portal\.php under htaccess \HTTP/" will do.

How to remove portal.php

Recommended: "PHP Video Tutorial"

Remove portal.php

If the server software you use is apache or ngnix, then the method provided below may help you.

The configuration steps are as follows:

1. Open the .htaccess file

In the apache conf file, open httpd.conf

1. Put the document in All AllowOverride None and all are replaced with AllowOverride All

2. Remove the following comments

LoadModule rewrite_module modules/mod_rewrite.so
Copy after login

3. Restart apache

2. How to write htaccess

Add

RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /portal\.php\ HTTP/
RewriteRule ^portal\.php$ http://www.abc.com/ [R=301,L]
Copy after login

below htaccess: Attachment: Conventional method of hiding portal.php

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

2. Then add the portal Set as homepage (available, do not check)

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

The above is the detailed content of How to remove portal.php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template