htaccess

Warning message

JQuery Cycle must be installed in order to run the slideshow. Please go to Status Report for instructions.

Sometimes you receive an error "The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved." .

The above error means

1) Either the problem is related to two users editing the same node
2) Or it can be related to max_input_vars in your php.ini

Solutions:

1) Clear cache of your browser
2) Edit php.ini file. Usually its located on /etc/php5/apache5/apache2/php.ini. Then find max_input_vars and increase it. Dont forget to restart the Apache server. If you are using suhosin then you also needs to change its values.

You can also change it with .htaccess file so that you dont need to restart the server:

php_value max_input_vars 2000 

If you are using suhosin you also need to add few more lines:

php_value suhosin.get.max_vars 2000
php_value suhosin.post.max_vars 2000
php_value suhosin.request.max_vars 2000

Sometimes we have to redirect the website from one url to another OR from one folder inside the website to another folder of different website.
Then you have to create a .htaccess file inside that folder or website. If that already exists then just place the below code otherwise create a .htaccess file within that folder
or in root of the website.
Windows doesnot let you create .htaccess file directly. To Create a .htaccess file in windows use following way :

1. Create a new empty text file.
2. Open that file . Go to file >> Save As
3. Save the file as .htaccess .

Now place the following code in htaccess file :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^http :// example.com/directoryname$
RewriteRule ^(.*)$ http :// example.com/directoryname/index.html/$1 [R,L]

Now upload this file to the server .

Subscribe to RSS - htaccess