Joomla uses the Apache rewrite pattern method _php instance

Source: Internet
Author: User
Tags smarty template

This article illustrates how Joomla uses the Apache rewrite pattern. Share to everyone for your reference, specific as follows:

Turn on "Use Apache rewrite mode: mod_rewrite" You have to do two things first, otherwise your site will not be used normally.

Rename the Htaccess.txt file under the Joomla installation directory to. htaccess

Method 1: How do you use Windows system, then install notepad++, then use him to open htaccess.txt, save As. htaccess.

Method 2: Start-run-enter "cmd", open command line tool, enter command "edit", click File, open Htaccess.txt file, save As. htaccess.

Make sure your Apache has the Mod_rewrite feature turned on.

Method: Open the Apache profile "httpd.conf", look for mod_rewrite.so, remove the "#" before this line of code, save the document, and restart Apache.

More about Joomla interested readers can view the site topics: "The introduction of YII framework and common skills summary", "PHP Excellent Development Framework Summary", "Smarty Template Primer Tutorial", "thinkphp Common Methods Summary", "PHP object-oriented Program Design Introductory Course" , PHP string (String) Usage summary, "PHP+MYSQL Database Operations Tutorial" and "PHP common database Operation Skills Summary"

I hope this article is helpful to everyone based on the Joomla program design.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.