Posts Tagged ‘Hosting’

domain redirect with mod_rewrite

January 16th, 2009 Comments off

There are at least two methods of an Internet address/domain to point to another location:

  • writing small frame and hosting it under originally address/domain – this way our original source will be hidden from visitors eyes.
  • writing small mod_rewrite rule to forward originally address/domain to another one, this is the case if we like both domain names, but think that the second one is more important.

Rules of modrewrite can be writen almost everywhere in apache configuration, but most convinient places are:

  • directory vhosts.d in apache configuration directory under etc, this location varies between Linux distributions but most likely it is something like /etc/apache2/vhosts.d/
  • file .htaccess that can be found at yours project directory served over apache, this can be something like /srv/www/

In all locations You have to write the same content

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} www\.niczsoft\.com [NC]
RewriteRule . [NC]

With this rule I have asked my apache to answer all requests with Please take care for escaping dots in RewriteCond it is required as dot would be matched as any character. In the given example NC stands for no case, so and WwW.NICZSoft.CoM will match and return the requesting person to

WordPress themes compatibility with php

December 17th, 2008 Comments off

As preparing blog for one of clients I have found problems with get it running, after some web research I have found that Hemingway theme uses old syntax … instead of downgrading my server or allowing old syntax I have wrote script that converts old syntax to current working one.

This is the script:

grep -rl “

  • replace <? markers to <?php
  • replace <= markers to <?php echo
  • For me this solved problems with Hemingway theme.

    Categories: Hosting Tags: , , , ,

    NICZ SOFT Blog hosting started

    December 16th, 2008 Comments off

    Welcome at new blog hosting service from NICZ SOFT, You can get here very nice blog for very small price, we offer best level of services, allow many customization, plugins and themes.

    If Shared blog is not what You want You can always get private blog only for You, bound with your domain name.

    Categories: Hosting, News Tags: ,