Category:: Apache

How to Setup Virtual Hosts in Ubuntu

In this post I will walk you through, how to Setup Virtual Hosts in Ubuntu. Virtual Hosts are used to setup more than one domain or websites using a single IP address. This is very useful if anybody wants to run multiple […]

Allow Cross Domain Fonts with CORS

Some browsers like IE doesn’t allow cross-domain fonts by default – unless you set an Access-Control-Allow-Origin header to the font. cross-domain fonts means fonts that are not hosted on your domain and may […]

How to Change port in XAMPP

By default Xampp server is run on 80 port, if you want to change this port to something, just fallow the below steps it is pretty easy. Before you start changing anything, make sure you don’t have xampp running somewhere, […]

YII – The mcrypt PHP extension is not installed.

Recently i tried to install YII2 ,i got “The mcrypt PHP extension is not installed.” error. In this post i will show you how to fix this issue and show you how to install mcrypt. What’s mcrypt? MCrypt […]

Redirect all pages to new domain with Htaccess

if you want to change your domain name without effecting SEO Ranking in search engines than you should think about 301 page redirect,with 301 redirect you can move your web application to new domain freely. we can use […]

How to Enable cURL on Windows & Apache Server?

Firstly, locate your php.ini file, which in my case is in the default directory of c:php, and edit with a notepad. Locate and uncomment (remove the ; at the start of the line) the following lines: Restart your Apache server. […]

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. I hope you […]

Redirect The Sub Domain To a Sub Folder with .htaccess

In this post I want to explain how to redirect the sub domain to a sub folder 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 […]

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 […]