Blog Archives

URL rewriting in Yii to hide index.php

Hi Folks, I am using Yii -yes it is,  MVC framework for new project in PHP. I started  learning  yii from the official site of yii. I found it is hard to start the work on yii, specially who don’t have knowledge of

Tagged with: ,
Posted in .htaccess, Yii

Include php file On all the pages of php

I need to include a files in all of your site’s pages? Normally, you’d use require() or include(). But do I really want to manually past the include code in every page? This may be at the start of page or end of page. There’s the little

Posted in .htaccess, PHP

Joomla -redirect non-www URLs to www

In order to redirect all of the requests for yourdomain.com to http://www.yourdomain.com, you should set the appropriate rewrite rule. This can be done by adding the following lines at the beginning of the .htaccess file in your WWW folder: RewriteCond

Tagged with: ,
Posted in .htaccess, Joomla 1.5