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.
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
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]
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.