The mod_rewrite module is enabled by default on CentOS 7. If you find it is not enabled on your server, you can enable it by…
1 CommentCategory: Apache
You can use mod_rewrite’s RewriteCond directive to redirect users to different websites depending on what device they are using. .htaccess Rules Following rewrite rules will…
4 CommentsIn this post, I will walk you through, how to Setup Virtual Hosts in Ubuntu. Virtual Hosts are used to setting up more than one…
Leave a CommentSome browsers like IE doesn’t allow cross-domain fonts by default – unless you set a Access-Control-Allow-Origin header to the font. cross-domain fonts mean fonts that…
1 CommentBy default Xampp server is run on 80 port, if you want to change this port to something, just follow the below steps it is…
Leave a CommentRecently I tried to install YII2 but I got “The mcrypt PHP extension is not installed.” error. In this post, I will show you how…
1 Commentif you want to change your domain name without affecting SEO Ranking in search engines then you should think about the 301-page redirect, with a…
1 CommentIn the past, performance was not considered one of the top priorities when developing web applications, but nowadays web app performance is most important for…
6 CommentsFirstly, locate your php.ini file, which in my case is in the default directory of xampp\php, and edit with a notepad. Locate and uncomment (remove…
2 CommentsMost web Hosting providers give access to override the .htaccess, To Increase the file size upload limit via .htaccess just copy the below settings into…
2 CommentsFor 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…
Leave a CommentFor 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…
Leave a CommentIn this post, I want to explain how to redirect the subdomain to a subfolder with .htaccess. I implemented this for demos.arjunphp.com,lab.arjunphp.com and downloads.arjunphp.com I…
1 CommentThe 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.…
Leave a Comment