Archive by Author

quick onsite SEO techniques to avoid duplicate content

1. redirect index.php to your main page RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.yoursite.com/ [R=301,L] 2. use canonical tag properly, so for http://www.yoursite.com/my-list-of-products?orderby=name&orderway=desc you should have: 3. redirect non-www to www version RewriteCond %{HTTP_HOST} ^yoursite.com [NC] RewriteRule … Continue reading

cakephp page title in view cake1.3

In order to change page title in cakephp inside a view just use the code bellow $this->set(‘title_for_layout’, ‘my cakephp page title’);

remove comparison links from magento

Copy app/code/core/Mage/Catalog/Helper/Product/Compare.php to app/code/local/Mage/Catalog/Helper/Product/ (create missing directories) Edit app/code/local/Mage/Catalog/Helper/Product/Compare.php after: public function getAddUrl($product) { add: return false;

Jquery Regex Validation

A quick post about validating anything you want using regex. I used it in a project that created forms on the fly, so validations like email, numbers and so on wasn’t so simple (I couldn’t do it by just adding … Continue reading

Error while loading shared libraries: libmm.so.14

As the title say, that’s an error message which I received when trying to compile a php version with mm as a ./configure option. fixing it is as easy as checking debug.log in your php source directory, searching where the … Continue reading

An apache php fastcgid suexec cpanel story

I wanted to get fastcgid running on cpanel/whm, so I went to easyApache and selected to compile apche with fastcgid support and php with fastcgi support, but guess what – it wasn’t working! they just ignored the settings and php … Continue reading