How to delete .htaccess file recursive based on size or content
find -type f -name “.htaccess” -delete Delete All .htaccess files from all directory and folders
Continue ReadingDedicated SEO Servers Solution
find -type f -name “.htaccess” -delete Delete All .htaccess files from all directory and folders
Continue ReadingYou can force an HTTPS connection on your website by adding these rules in your website’s .htaccess file: 1 2 3 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L] If your website is in a subfolder, use this code instead: 1 2 3 4 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} folder RewriteRule ^(.*)$ […]
Continue ReadingTo access .htaccess file you should have access to your server either through ssh terminal command or any FTP client such as FileZilla. So, login to your server through ssh terminal command or FileZilla and locate the .htaccess file. The .htaccess file should be in the public_html folder or your website name folder. Create a […]
Continue Readingsometimes it’s necessary to make sure your website’s visitors use the SSL encrypted connection and you need to know how can i redirect force to use https . also if your website is banned in india or any other country then you can use https instead of http and its will work perfectly. here is […]
Continue ReadingWriting this to Apache .htaccess in your script directory might work, if your server supports setting PHP commands through .htaccess: php_value memory_limit 2048M Since it may be possible that .htaccess commands for setting PHP values are turned off. Then you can also try this from PHP code: ini_set(‘memory_limit’, ‘2048M’); If this doesn’t work and .htaccess […]
Continue ReadingBelow is an example of having multiple directory locations using different versions on PHP. The following example shows the “public_html” is using PHP 5.4, the “public_html/othersite” using PHP 5.2 and so forth. public_html 5.4 public_html/othersite: 5.2 public_html/someothersite: 5.3 public_html/someothersite/yetanother: 5.4 Using the Default PHP version To use the system default PHP, use the following in […]
Continue ReadingHot link prevention refers to stopping web sites that are not your own from displaying your files or content, e.g. stopping visitors from other web sites. This is most commonly used to prevent other web sites from displaying your images but it can be used to prevent people using your JavaScript or CSS (cascading style […]
Continue Reading