Home CMS Tutorial Discuz How to remove portal.php

How to remove portal.php

Oct 12, 2020 am 09:55 AM

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)