Cotton Rohrscheib

The Cotton Club Blog & Podcast

  • Home
  • About
    • Entrepreneurial Journey
  • Blog
    • Faith & Family
    • Marketing & Tech
    • Farm & Business
    • Entertainment
    • Health & Wellness
    • Urban Farming
    • Weekend Projects
  • Podcast
  • Newsletter
  • Media
    • Photo Galleries
    • Video Archives
  • Marketplace
    • eBay
    • Buying Gold & Silver
    • Accoutrements
      • Bags & Briefcases
      • Notebooks
      • Pens
      • Personal Carry
      • Wallets
      • Watches & Jewelry
    • Poshmark
    • Artwork
    • Banknotes & Currency
      • Currency
      • Gold Banknotes
      • Silver Certificates
    • CIvil War Relics
    • Native American Artifacts
    • Rare Books
    • Rare Coins
      • Coin Sets
      • Individual Coins
    • Signs & Advertising
    • Stock Certificates
    • Trading Cards
      • Trading Cards: Autographs
      • Trading Cards: Base
      • Trading Cards: Graded
      • Trading Cards: Raw
      • Trading Cards: Pokémon
      • Trading Cards: Sets
    • Vintage Toys
      • Buddy L
      • Ertl Farm Toys
      • GI Joe
      • Masters of the Universe
      • Hot Wheels
      • Lionel Trains
      • Lunch Boxes
      • Marx Toys
      • NASCAR Die-Cast
      • Schleich Toys
      • Star Wars
      • Tonka Trucks
    • Vintage T-Shirts
    • Vinyl Records
  • Connect
You are here: Home / Marketing & Tech / Using ModRewrite

Using ModRewrite

November 13, 2008 by Cotton Rohrscheib 1 Comment

Let’s say you have just re-designed a website and during the process you were forced to change some filenames in the new site from what they were in the existing website.  For example, about.htm is now called about.php in the new site structure.  Normally you would be forced to endure having a dead link in Google until your new filename get’s crawled or updated from your sitemap.xml.  This can sometimes take weeks if not longer.

A quick way around this is to use the ModReWrite Engine to “re-route” filenames to new filenames.  This also comes in handy if you have a lot of external websites or clients that link back to specific pages in your website.  To setup ModRewrite Engine, simply create or edit your .htaccess file to have the following sample code: (of course change this to match your filenames, etc.)

 

   1:  Options +FollowSymLinks
   2:  RewriteEngine On
   3:  RewriteRule ^index.html http://www.yourwebsite.com/index.php
   4:  RewriteRule ^directory_name/index.html http://www.yourwebsite.com/directory_name/index.php

Filed Under: Marketing & Tech Tagged With: Apache, mod_rewrite

About Cotton Rohrscheib

The Cotton Club is a monthly podcast hosted by me, Cotton Rohrscheib. I'm a 52 year old entrepreneur w/ ADHD, OCD (and now AARP) that refuses to grow up as I grow old. I have collaborated and invested in hundreds of projects throughout my career in multiple industries such as; technology, healthcare, and agriculture. I also have 25 years experience in the marketing industry as a co-founder of an award-winning advertising agency. I will undoubtedly cover a wide variety of topics on my podcast while sharing some really crazy stories and situations that I've been fortunate to witness firsthand. I also have a book coming out in 2025 titled, "Mistakes were Made"

Comments

  1. download drupal themes says

    February 28, 2011 at 5:22 am

    Mod rewrite is very useful tool i would try using this tool here after.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

  • Email
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Updates

  • The Marketplace is now Connected to eBay!
  • Ep034: Cotton Rohrscheib & Tim Volberding
  • I Stay on Track w/ Reminders & Task Lists
  • It’s a Really Dry Start to the Season…
  • Trading Card Grading Services

Blog Categories

  • Blog (440)
  • Entertainment (378)
  • Faith & Family (155)
  • Farm & Business (302)
  • Health & Wellness (38)
  • Marketing & Tech (592)
  • Podcasts (33)
  • Urban Farming (24)
  • Weekend Projects (10)

Blog Archives

Join the Cotton Club!

 

Content Copyright © 2000-2026
Cotton Rohrscheib | Rohrscheib Capital
Disclaimer | Privacy Policy | Account Manager | View Cart

All opinions expressed on this website are 100% Cotton (see my disclaimer). All content, including text, images, and media, are the intellectual property of Rohrscheib Capital unless otherwise noted. To learn how we use your private information, checkout our privacy policy.