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 editing 00-base.conf file located in /etc/httpd/conf.modules.d/ directory. Add or uncomment the following line: Save and close the file, then restart the httpd service: Once the mod_rewrite module has been activated, […]
You can use mod_rewrite’s RewriteCond directive to redirect user’s to different websites depending on what device they are using. .htaccess Rules Following rewrite rules will redirect iphone, ipad and ipod users to different sub domains based on the user agent. For all the other user agent requests, default rewrite rules will be applied.
In this post, I will walk you through, how to Setup Virtual Hosts in Ubuntu. Virtual Hosts are used to setting up more than one domain or websites using a single IP address. This is very useful if anybody wants to run multiple websites using a single IP address on single VPS. Here are the […]
Some 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 are not hosted on your domain and may be CDN based fonts or fonts that are hosted on other websites. It seems that for security reasons browsers do not allow […]
By default Xampp server is run on 80 port, if you want to change this port to something, just follow the below steps it is pretty easy. Before you start changing anything, make sure you don’t have Xampp running somewhere, especially services as they are running behind the scene. How to change we need to […]
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 is a replacement for the old crypt() package and crypt(1) command, with extensions. It allows developers to […]
if you want to change your domain name without affecting 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 different methods for setting 301 redirects from old domain to new domain but I am gonna use […]
In the past, performance was not considered one of the top priorities when developing web applications, but nowadays web app performance is most important for success, and Google also taking site speed into account in the search rankings. So In order to get better rankings & to provide best user experience we should use suitable […]
Firstly, 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 the ; at the start of the line) the following lines: Restart your Apache server. To test if cURL is successfully running on your Windows Apache Server, run phpinfo(); on […]
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
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.
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.
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.
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 […]