Nội dung bài viết
4. Establish htaccess and php.ini for apache web site server configuration tutorial
นอกจากการดูบทความนี้แล้ว คุณยังสามารถดูข้อมูลที่เป็นประโยชน์อื่นๆ อีกมากมายที่เราให้ไว้ที่นี่: ดูความรู้เพิ่มเติมที่นี่
Lesson Code: http://www.developphp.com/video/PHP/Establishhtaccessandphpiniforapachewebsiteserverconfiguration
Establish your .htaccess file and learn to prevent directory file listing as well as specify a more user friendly 404 error page through htaccess. Request your php.ini file to adjust your PHP configuration settings on your apache server. The PHP configuration file can be made by going to your hosting control panel and clicking the \”PHP Configuration\” icon.
EP.24 .htaccess ปรับแต่งหน้า login Yii2 Framework
EP.24 .htaccess ปรับแต่งหน้า login Yii2 Framework
เรื่องของ .htaccess และตั้งค่า Apache2
ตัวอย่างนี้เราจะมาตั้งค่า Apache2 ของเราให้สามารถใช้งาน modrewrite และจะมาเล่นกับไฟล์ .htaccess กันครับ
.htaccess MOD_REWRITE Tutorial
Patreon | https://www.patreon.com/jream
The guy who works here has been a great help to me with Mod Rewrite: http://datakoncepts.com/seo
We are going to make a Page Handler to route every page request to an index.php file. I’ll show you some basics and how to grab the URL inside PHP as well. This is fun, but be careful it’s easy to mess stuff up!
http://jream.com
Working Without FTP Access – WP htaccess control
WP htaccess Control Plugin Page: https://wordpress.org/plugins/wphtaccesscontrol/
Are you having issues without FTP Access? In this video, Anthony the WordPress Guy from Cloud Sites by Rackspace shows you how to use a plugin with WP htacces. For information on setting up WordPress hosting, visit our WordPress page at http://www.rackspace.com/cloud/sites/….Here is the transcript of the video:
Hey guys, Anthony here with another WordPress quick tip. Today I am going to be talking about editing your htaccess file if you don’t have FTP credentials. So I have found there is a plugin that will actually let you edit your htccess file and it will allow you to change things like maximum upload size or how your permalinks are handled. Big problems that you are going to have if you are only given WordPress access are not being able to upload large files because the default upload size is usually around 2 megs, which is usually not enough to get what you need done. So what this plugin in does is allow you to change that without every having to login to FTP.
Okay, so we’re going to start in the plugin section of WordPress and you’re going to click on the “add new” button. Search for “WP htaccess”. What the htaccess is doing is it is setting the server size rules, and it is what handles the maximum upload size, the post max size, and things like that.
Go ahead and install the first one, “WP htaccess Control”. There are other ones, but this is the one I prefer. It is much more user friendly. You don’t actually have to type and run the risk of having syntax errors.
When it’s finished installing, click “activate”. Then hover over “settings” and click on “htaccess control”. This will take you to the settings for the plugin. As you can see, there are a ton of options, but I’m just going to get into the big ones. Let’s first look at the “htaccess Suggestions” section. Click and it will open up. You can protect the wpconfig file or you can protect the htaccess file, and all this does is deny access to the public to those files.
There is a ton you can do, but this is the part we want to focus on: “Limit Upload Size”. I get the request a lot that WordPress is saying it can’t upload anything larger than 2 megs. Well, this is where you can change that. Type in “20”. This is usually where I keep it.
For “500 Error” or “403 Error”, you can set a custom path for error pages through a static html page however you want. All you have to do is point it to that file. This plugin has a lot of options, so let’s get into some other ones.
“Custom Author Permalink” – you can set what you want your custom author to be or you can do a custom search permalink by typing in “/search/” and then whatever you are searching for.
You can also do Custom htacces, so if you have specific rules, then you can enter that here.
There is not a ton to this plugin, so you’re pretty much done. So with that, the plugin is configured. This solves the issue of not having FTP Access. If you do, then you certainly can go and edit yourself.
Rackspace Cloud Sites for WordPress:
http://cloudsites.rackspace.com/wordpressdrupal
Facebook Page: https://www.facebook.com/rackspacecloudsites
Google+ Page: https://plus.google.com/100139417795527694623/posts
Instagram Page: http://instagram.com/cloudsites_by_rackspace
นอกจากการดูหัวข้อนี้แล้ว คุณยังสามารถเข้าถึงบทวิจารณ์ดีๆ อื่นๆ อีกมากมายได้ที่นี่: ดูบทความเพิ่มเติมในหมวดหมู่Tips