mod_rewrite and .htaccess

Posted on 2004-11-18
Last Modified: 2010-03-04

can someone please help me with this regular expression to put in the .htaccess file,

I want all request on a site to be directed to the default page, for example these three:

should all be directed to:

Please help...

Question by:Nick_72
    LVL 5

    Accepted Solution

    You need everything starting with /abc to be redirected back to startpage?

    Put this in your .htaccess

    RewriteEngine On
    RewriteRule ^/abc/* / [R]

    This will redirect all url what you typed, but for example doesn't redirect
    LVL 9

    Author Comment

    Actually, I have found out what I really wanted to do which what not what I asked for, so I'll accept your answer since it answers the question asked and then ask a new question.
    Hopefully you'll take a look at that one too. :)



    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Suggested Solutions

    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video discusses moving either the default database or any database to a new volume.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now