|
Using .htaccess to optimize and secure website
|
|
05-11-2011, 10:17 AM
|
|||
|
|||
|
Using .htaccess to optimize and secure website
Use .htaccess file to optimize and better secure your website: the protection of critical files, upload limit, 301, custom error pages, short listing directory contents, compressed content ...
CONTENTS ENTRY INTO FILE htaccess.txt - Htaccess file protect file Quote:<files .htaccess>- Anti spam comments Quote:RewriteEngine On- Redirect 301 Quote:Redirect 301 /old.php http://www.yourdomain.com/new.php- Create custom error page Quote:ErrorDocument 404 /notfound.php UPLOAD TO SERVER htaccess.txt Using ftp client (using ASCII mode) and rename the file.. htaccess CHMOD .htaccess file to 644. Thanks Regards SheKHAR Thanks 123Systems.Net And Freevps.Us. |
|||
|
05-11-2011, 02:17 PM
(This post was last modified: 05-11-2011 03:15 PM by dio98.)
|
|||
|
|||
|
RE: Using .htaccess to optimize and secure website
Nice tutorial.
BTW I have a question about: ErrorDocument 404 /notfound.php ErrorDocument 403 /forbidden.php ErrorDocument 500 /error.php Will it get the text from the file you choose? Rep me if this helped you. |
|||
|
05-12-2011, 06:13 AM
|
|||
|
|||
|
RE: Using .htaccess to optimize and secure website
yes it will display whatever you tell it to in those php files.
|
|||
|
05-12-2011, 01:12 PM
|
|||
|
|||
|
RE: Using .htaccess to optimize and secure website
Nice tutorial! But you can do this on CPanel with ease, right?
Though coding it on .httaccess can be a nice way of learning, I guess. |
|||
|
05-15-2011, 06:55 PM
|
|||
|
|||
|
RE: Using .htaccess to optimize and secure website
top tutorial
|
|||
|
05-17-2011, 03:58 AM
|
|||
|
|||
|
RE: Using .htaccess to optimize and secure website
Great codes I will try some of them out soon
|
|||
|
05-17-2011, 08:46 PM
(This post was last modified: 05-18-2011 05:06 AM by Infinity.)
|
|||
|
|||
|
RE: Using .htaccess to optimize and secure website
how is that script exactly working?/ Can someone of you can tell it me in english, I don`t know php, but perhaps I would going to learn a little bit php in the summer holidays?
Code: RewriteEngine On |
|||
|
05-18-2011, 01:47 PM
|
|||
|
|||
|
RE: Using .htaccess to optimize and secure website
htaccess files are not php. They are basically config files for apache. Read http://httpd.apache.org/docs/current/how...ccess.html
|
|||
|
05-20-2011, 01:39 AM
|
|||
|
|||
RE: Using .htaccess to optimize and secure website
(05-11-2011 10:17 AM)ShEkhAr Wrote: <files .htaccess>[/quote] That is typically done by default but there is no real reason to use .htaccess when on a VPS. Just turn it off and add what you would put there into the vhost for your domain in the main httpd.conf KVM2 (VPS 15, 19 and 25) Munin report | Check your VPS 15, 19 or 25's IOPS usage |
|||
|
05-20-2011, 05:03 AM
|
|||
|
|||
|
RE: Using .htaccess to optimize and secure website
Not if you are the only one using it anyway.
|
|||
|
« Next Oldest | Next Newest »
|
| User(s) browsing this thread: |
| 1 Guest(s) |









![[Image: impad.png]](https://freevps.us/img/images/impad.png)
