How to remove index.php in joomla

藏色散人
Release: 2023-03-05 18:28:01
Original
2075 people have browsed it

How to remove index.php in joomla: first log in to the Joomla management background; then create the ".htaccess" file; then enable Apache's rewrite module; and finally remove "index.php" directly.

How to remove index.php in joomla

Recommendation: "PHP Video Tutorial"

Remove index.php## from the Url of Joomla

# Recently I was studying the Joomla system (a well-known CMS system). After installation, I found that there is always an index.php in the URL of the page. It feels very eye-catching. I am determined to get rid of it quickly. Stop talking nonsense. , the following takes version 2.5 as an example to provide the removal steps.

1. Log in to the management background, and check "Yes" in all "SEO Settings" in "Site"->"Global Configuration"->"Site":

How to remove index.php in joomla

2. Create an .htaccess file: Save the htaccess.txt file under the Joomla installation directory as .htaccess (note that it cannot be renamed directly under Windows. You can use an editor such as Notpad to save it as .htaccess That’s it).

3. Enable Apache's rewrite module: Enable the mod_rewrite module in the httpd.conf file in the conf directory under the apache installation directory. Specific modification method: Find the LoadModule rewrite_modulemodules/mod_rewrite.so line and replace the # sign in front of it. Just remove and restart Apache. If there is no #, you can skip this step.

4. Remove index.php but the page shows a 404 Not Found error solution: This is because the rewrite module in Apache is not enabled. You need to change all AllowOverride None in httpd.conf to: AllowOverride All , and then restart Apache.

The above is the detailed content of How to remove index.php in joomla. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!