Mod_Rewrite help for a noob please

Posted on 2011-10-05
Last Modified: 2012-05-12
I want to rewrite all URLs of the form:


I.e. lose the 'push20' bit

Ive tried with:

   RewriteEngine On
   RewriteRule   ^push20/(.*) /$1 [R]

Open in new window

but its not happening....

Suggestion please!
Question by:arndale65
    LVL 43

    Expert Comment

    Looks good if put in .htaccess
    Have You put that in .htaccess or apache config file?

    Author Comment

    LVL 43

    Accepted Solution

    If in httpd.conf then (note the leading slash change)

       RewriteEngine On
       RewriteRule   ^/push20/(.*) /$1 [L,R]

    Author Closing Comment

    That's it! - thanks a million

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    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