From the monthly archives:

July 2006

Answers the question:
How to redirect domains given tools .htaccess, parked domain redirect and Joomla component 404sef.

If you use Joomla and care at all about search engine rankings you’ll have to use a SEF translation of some kind. I chose 404sef and I’m grateful for what it does. Here’s how to get around something it doesn’t do, which is handling non-primary domains.
It will make Search Enging Friendly links for the current domain, but if you redirect a different domain to the 404Sef’d one the component will cough up a hair ball.

Setup:

  1. Joomla 1.0.10
  2. Siteground.com hosting cpanel with parked domains
  3. Global config: SEF on
  4. SEF404 config: SEF on
  5. secondary domains that need to redirect in a search engine friendly way to http://www.bombshelters.com/:

biologicalprotection.com
biologicalshelter.com
biologicalshelter.us
biologicalshelters.com
biologicalshelters.us
blastshelters.com
blastshelters.us
bombshelter.us
chemicalprotection.us
combatshelter.com
disastershelter.com
falloutshelter.us
governmentprotection.com
nbcshelter.com
nbcshelter.us
nuclearprotection.us
nuclearshelter.us
nuclearshelters.com
radiusdefense.com
radiusengineering.us
radiusengineeringinternational.com
radiusengineeringintl.com
radiusshelters.com
saferoomprotection.us
shelterengineering.com
shelterprotection.us
sheltersystems.us
survivalshelter.us
survivalshelters.us
undergroundshelter.us
undergroundshelterengineering.com
undergroundshelters.com
undergroundshelters.us
wmdprotection.us
Setup secondary domains to resolve to primary domain

These domains are all registered on network solutions. I changed the primary and secondary name servers on all of them to the siteground name server for bombshelters.com. Then on cpanel for bombshelters.com I used the “parked domains” tool to point each of the domains to bombshelters.com.

This worked, and then broken suddenly tonight. It actually probably broke when I installed 404SEF I just didn’t realize it.

Symptoms

I guess I had 404SEF off when I redirected the domains to the bombshelters.com name server because m initial tests worked great. You’d type undergroundshelter.us and the browser would display bombshelters.com content under the undergroundshelter.us address bar. When I tried that tonight I got “this page cannot be displayed.”

The pubic_html errorlog pointed to:

[24-Jul-2006 00:58:57] PHP Warning: strpos() []: Empty delimiter. in /home/bombshel/public_html/components/com_sef/sef404.php on line 83

[23-Jul-2006 23:04:24] PHP Fatal error: Call to undefined function: sefreltoabs() in /home/bombshel/public_html/components/com_content/content.html.php on line 584

Things that don’t fix the problem

  1. Turning off 404SEF: it fixes the problem but creates the old problem of unfriendly URLs
  2. Ensuring the strpos delimiter (and target) are not empty on sef404.php:
  3. [24-Jul-2006 00:58:57] PHP Warning: strpos() [function.strpos]: Empty delimiter. in /home/bombshel/public_html/components/com_sef/sef404.php on line 83

    bold line below is line 83

    if (!empty($pathdata) && (!empty($sefconfig->suffix)))

    {
    if (strpos($pathdata,$sefconfig->suffix) !== false)
    $path_array[$x] = str_replace($sefconfig->suffix,”",$pathdata);
    $x++;
    }

    This is fine as far as it goes, it’s good to test inputs before assuming they have content, but it addresses a symptom, not a problem.

  4. Similar to #2, defining sefRelAbs function against its will

]: Empty delimiter. in /home/bombshel/public_html/components/com_sef/sef404.php on line 83]: Empty delimiter. in /home/bombshel/public_html/components/com_sef/sef404.php on line 83content.html.php:
if (!function_exists(’sefRelToAbs’))
{
function sefRelToAbs($string) {}
}
What does work

In .htaccess rewrite any domain that is not http://www.bombshelters.com/ to be http://www.bombshelters.com/. Works for “bombshelters.com” (without www), “falloutshelter.us,” and etc. secondary domains.
RewriteCond %{HTTP_HOST} !bombshelters.com$ [NC]
RewriteRule ^(.*)$ http://bombshelters.com/$1 [L,R=301]

Big thank you to http://enarion.net/web/apache/htaccess/redirect-www-and-no-www/

 

{ 0 comments }

404SEF Joomla Directories-as-Filenames

by Caroline on July 22, 2006

Joomla’s 404SEF component can be tricky if you want to use directory names instead of file extensions, aka

http://www.bombshelters.com/Education/Biological-Bioterror-Weapons-Effects

not

http://www.bombshelters.com/Education/Biological-Bioterror-Weapons-Effects.html

First, lowercase is on by default. Second, default file extension of .html hurls your pages into deep space.

To hae both, go to 404 config, set All Lowercase to No, set File Suffix to a blank textbox.

{ 0 comments }

AnimalImage.biz dorm room marketing

by Caroline on July 13, 2006

Affiliate Marketing Experiment
AnimalImage.biz is our first full-blown affiliate-driven ecommerce venture. It is powered by Amazon Associates Program and AllPosters.com Affiliates Program. Today I am adding linkshare.com animal magazines.

Animal Image Target Market: Dorm Room Decor
The site’s marketing target is the young girl going to college. Girls — much more than boys — will express their homesickness and actually try to do something about it. So our marketing strategy validates the girl’s experience and offers inspiring animal posters as a remedy.

Visitor Stats
We launched on July 8 2006. As of yesterday AnimalImage.biz had 34 search terms on Yahoo centered on the “dorm room” theme. To date (July 13) the ads have 3,244 impressions and 13 clicks. Today I updated the marketing copy on 8 ads. I believe some of them must have bee written in my sleep. I also need a lot more copy on the site itself but that is taking some time outside of my control. My web stats indicate that following # of unique visitors starting July 8: 40, 26, 34, 52, 8.

Promotion Activites
I launched the site on v7n.com forums by way of asking for feedback. I used OnlyWire and a few other tools to ping this post: Animal Image .biz (animalimage.biz) launched. I also submitted the site to some free search engine submission services, Yahoo, Google and MSN.

college-dorm-room.com, dorm-room-decor.com, dorm-room.net
The Search Engines are rewarding keyword domains so today I added and 301-forwarded some good college dorm room domains. college-dorm-room.com, dorm-room-decor.com and dorm-room.net are not meant for human consumption, they exist for the search engines.

July 12 2006 AnimalImage Revenue Results
$0.00

 

Technorati Tags
, , , , , , , , ,
Ice Rocket Tags
, , , , , , , , , , ,

{ 0 comments }

Affiliate Experiment with LinkShare

by Caroline on July 11, 2006

Today we’re monetizing the blog with LinkShare affiiate links. I chose techie and game links because I assume my audience is techie and game-ie. The LinkShare program is straightforward to join. The interface is similar to commission junction, easier to read.

I placed some links on the sidebar and some are over this article. I’ll report back on AdSense vs. LinkShare success.

By the way. Like this blog? Please click a link.

 

Technorati & Ice Rocket Tags
, , , , , , , , , , , , , , , , , , ,

{ 0 comments }

eSyndicat web directory software

eSyndicat is an open source link directory software package. It’s easy to use. Visitors can submit links or you can add them on the back end. It has unlmited categories and subcategories. It allows you to run AdSense, search the links and display new and popular entries. I had no trouble finding a nice, clean template.

 

Technorati & Ice Rocket Tags
, , , , , ,

{ 0 comments }

Settling on a Blog Theme with AdSense

by Caroline on July 9, 2006

The task today is to decorate the WordPress blog in a theme appropriate for code readers and flexible enough for Adsense Hosting.

After Joomla I’d say WordPress has to be my favorite tool. It works. It doesn’t talk down to me. I don’t have to threaten to hurt its family to make it go.

Finding themes for WordPress is much harder than finding themes for Joomla. My blog posts are full of raw code — PHP, C#, VBScript — so the theme I choose for Bogart’s Answers has to work with dicey content. (When I first created this blog over at Blogger Google made me wait for a human to approve it. Apparently all of that raw C# looked like spam to the filter.)

This theme — Corporate Pro 1.0 by Colleen Chard — has the strength and flexibility to withstand my spamish-looking code rants. This theme is a beautiful combination of color, layout and refinement.

Colleen Chard's Corporate Pro 10 WordPress Theme

Corporate Press 1.0 Theme

Of the many marketing ideas I’ve learned over at John Scott’s V7n forums is the very good idea of making the AdSense the same font as the theme’s font. I have added 1 link unit and three text units to the theme’s index and sidebar using the colors I found in styles.css. The result is Google AdSense that blends right in.

Incorporating AdSense Using the Theme's Fonts

Technorati & Ice Rocket Tags
, , , , ,

{ 0 comments }

decorate your dorm room with www.animalimage.biz dog posters, dog books, dog magazines, cat posters, cat books, cat magazinesJoin us as we experiment with a brand spanking new affiliate marketing site. Today we added dog magazines, dog books and dog stories to our dog posters. The content comes from amazon.com and allposters.com affiliate programs, and our newest writer Castina Watson. Until we figure out exactly how we want to reproduce the results the site is not using a database. The pages are simple table cells that include individual files containing affiliate code.

The Yahoo ad program is setup, were waiting for editorial release. The theme is “decorate your dorm room with animal posters.”

We will be adding internal cross linking to make it easier for the visitor to stick to the site.

Technorati & Ice Rocket Tags
, , , , , , , , , , , , , , , , , , ,

{ 0 comments }

Animal Image . biz (animalimage.biz) launched

by Caroline on July 7, 2006

Animal Image.biz (www.animalimage.biz) affiliate web siteWe are proud to announce the launch of animalimage.biz.

Affiliate Ecommerce Site
Animal Image is an experimental affiliate site designed to create revenue for animal-related web sites. Eventually we will integrate what we learn into animalneighborhood.com and our free New Hampshire animal welfare web sites.

Content
Next week we’ll have 25 or 30 articles on the site. Most will discuss the emotional benefits of caring for animals. The rest will discuss how to make the journey to college easier for young girls.

The marketing tie-in is:
Images of cats, dogs, puppies, horses, dolphins etc will comfort the young girl decorating her dorm room and feeling the pangs of home-sickness.

Stay tuned for more on our experiements in affiliate marketing.






Dorm Room Decor  

{ 0 comments }

A Complete Guide to 404SEF with Joomla

by Caroline on July 4, 2006

If you’ve installed 404SEF and gotten it to work you might find that it still seems to mess up sometimes. You assign a module to a page but that page is not always associated with that menu item. The module therefore doesn’t show up.
Actually it’s Joomla that’s jumping all over the place, 404SEF is just going along for the ride.
Let’s go through everything required to make 404SEF work, including when Joomla keeps renaming pages.

  1. Install 404SEF as a component
  2. modify .htaccess as per below
  3. Turn on SEO in Global Configuration
  4. Turn on 404SEF in 404SEF Configuration
  5. If a module shows up sometimes but not others, and it appears that 404SEF is renaming a page every time it’s loaded, make that page static using the Content/Static Content Manager (create new static content and delete old dynamic content).

## Can be commented out if causes errors, see notes above.
# Options FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver’s URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)
# RewriteBase /
########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named ‘content’ or ‘component’ on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section
########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section

{ 1 comment }