Categories
wordpress

How to enable WordPress Post thumbnails?

In this post, I would like to show you how to enable WordPress post thumbnails on your WordPress theme. Post thumbnails are pretty useful and very easy to activate.To enable post thumbnails simply paste the following code into your current theme’s functions.php file. How to Display Now to Display Post Thumbnail in views, past the […]

Categories
YII

How to Remove index.php in the url of Yii Website?

Usually, when we run a Yii website, the URL will have index.php after the hostname. To remove this in appache web server, we need to enable the mode_rewrite module and should create .htaccess file. To hide index.php from the url on a website, add an .htaccess file to your web root, with this text: After […]

Categories
Apache

How to Increase file size upload limit using .htaccess ?

Most of the web Hosting providers give access to overriding the .htaccess, To Increase file size upload limit via .htaccess just copy the bellow settings into your .htacess file and put it in your web root directory post by : arjunphp.com

Categories
Apache

How to force no-www URLs to www version URLs with htaccess?

For SEO reasons, you might always use (or remove) the www prefix in your urls. The following snippet will add the www to your website url and redirect any url with the  non-www to the www version.

Categories
Apache

How to Remove www in url with htaccess?

For SEO reasons, you might always remove (or use) the www prefix in your URLs. The following snippet will remove the www from your website URL and redirect any URL with the www to the non-www version.

Categories
Tips

How to Flush Windows DNS Cache?

Hey! , Typically There is 3 Type of Caches in windows Which you can flush easily: Memory Cache. DNS Cache. Thumbnails Cache. What are the Benefits of Cache Flushing? Clearing the Memory Cache Can Free Up some System Memory and Clearing The Thumbnail Cache can Free up Space on Hard Disk. And Clearing The DNS […]

Categories
Apache

Redirect The Sub Domain To a Sub Folder with .htaccess

In this post, I want to explain how to redirect the subdomain to a subfolder with .htaccess. I had implemented this for demos.arjunphp.com,lab.arjunphp.com and downloads.arjunphp.com I hope it is useful for you. That’s it.

Categories
Apache

How to Enable Rewrite Module in Apache ?

Rewrite module is not enabled by default in Apache’s configuration settings. although you can enable it manually by doing very few simple steps: 1. open your httpd.conf(Located in Apache installation) file with your favorite editor.Then search for blow line Replace above line with this line or simply remove ‘#’. 2.Now find this string Allow Override […]