Mac in the following Apache Chong. htaccess file

Source: Internet
Author: User

In setting a fixed link will take the following example to illustrate the sample question:
If you have .htaccess Filecan be written. We can change it on our own initiative. But it seems that it is not writable, so we have listed below your .htaccessThe URL rewrite rules that should be added to the file.

Click the text area below. Press   ctrl+ a &NBSP; to select All. The following code is required to write 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 a "." The beginning of the file. 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 commands such as the following to show or hide hidden files in the terminal:

Show hidden files defaults write Com.apple.finder Appleshowallfiles-bool true
Instead of displaying input defaults write Com.apple.finder Appleshowallfiles-bool false
You will then be able to name the file at the beginning of the "dot" and the name of the. htaccess file to the Web root folder. Refresh, you will be able to implement fixed link changes.

Copyright notice: This article Bo Master original articles, blogs, without consent, may not be reproduced.

Mac in the following Apache Chong. htaccess file

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.