I m PHP 5.2.0 / Apache and I can’t access php.ini I try to update .htaccess and added php_value upload_max_filesize “25M” php_value post_max_size “25M” However it will give me “Internal Server Error”
Tag Archives: .htaccess
Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules
For a website that has URLs that end with a slash (/), it’s a good practice to ensure that all url links been parsed by the web server ended with trailing slash, even if visitors forget to enter the ending slash. This avoid visitors been served with 404 Page Not Found or Page Cannot be Displayed …
Continue reading “Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules”
Password Protecting Your Pages with htaccess
Creating the password file The first step is to create a simple text file that will store your username and password, separated by a colon (:). The small catch is that the password must be encrypted. Luckily, there are many free web-based utilities that will encrypt the password for you. Try one of these: 4WebHelp’s online …
Continue reading “Password Protecting Your Pages with htaccess”
Php, MySql, .htaccess: friendly urls
Php, MySql, .htaccess: friendly urls There are a lot of tutorials that show how to change an address like: www.mysite.com/products.php?product_id=1234 into others like: www.mysite.com/products/1234 www.mysite.com/products/1234.html In this article I’d like to go one step forward and to create something like: www.mysite.com/easy-to-remember-product-name www.mysite.com/easy-to-remember-product-name.html
How to enable or use .htaccess on Apache Web Servers in Windows:
Using a text editor, open the httpd.conf file. In XAMPP, this file is found in the \apache\conf directory Locate the following line of code: #LoadModule rewrite_module modules/mod_rewrite.so Remove the # from the line as seen below to enable the module: LoadModule rewrite_module modules/mod_rewrite.so Save the httpd.conf file and Restart your server Restart your Apache Server If all goes well, you should …
Continue reading “How to enable or use .htaccess on Apache Web Servers in Windows:”
.htaccess Generator
.htaccess File Wizard The .htaccess is a simple method that allows you to customise the way the webserver works on a per directory basis. The .htaccess file is a simple ASCII text file, which when placed in a certain directory in your webspace, will cause the webserver to use that configuration on all files in …