Create a. htaccess file for Apache under Mac

Source: Internet
Author: User

The following questions are prompted when you set up a permalink:
If you have .htaccess Filecan be written, we can automatically modify it. But it seems that it is not writable, so we have listed below your .htaccessthe URL rewrite rules that should be included in the file. Click on the text area below and pressCTRL+ aTo select all. you need to write the following code to the. htaccess file<ifmodule mod_rewrite.c>Rewriteengine onrewritebase/wordpress/rewriterule ^index\.php$-[L]rewritecond%{request_filename}!-fRewriteCond%{ Request_filename}!-d
is to really build one with "." Instead of "file name. htaccess".
Open Text edit to create a new text file and rename it, you will be prompted not to do so. That involves a problem with the Mac system showing hidden files. Enter the following command in the terminal to show or hide hidden files:
Show hidden files defaults write Com.apple.finder Appleshowallfiles-bool true
Instead of displaying input defaults write Com.apple.finder Appleshowallfiles-bool false
After that, you can name the file at the beginning of the "dot", place the named. htaccess file in the root of the Web page, and refresh the page to make the fixed link changes.

Create. htaccess file for Apache under Mac

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.