Results 1 to 4 of 4

Thread: How to turn on Mod Rewrite in Apache - Help Needed

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    How to turn on Mod Rewrite in Apache - Help Needed

    can somebody pls tell me how to turn on mod rewrite to work properly on localhost.
    i have Apache 2.2.0

    thanks
    Last edited by modpluz; May 18th, 2006 at 09:46 PM.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: How to turn on Mod Rewrite in Apache - Help Needed

    Inside the server configuration or virtual host container, enter the following line:
    Code:
    RewriteEngine on
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: How to turn on Mod Rewrite in Apache - Help Needed

    i've done that but it doesn't seem to recognize it.
    whenever i try doin something it says "Object Not Found"

    after creating an .htaccess file with the below content
    Code:
    RewriteEngine on
    RewriteRule ^test.cleanurl(\/.*)*$ /test.cleanurl.php
    RewriteRule ^news(\/.*)*$ /news.php
    and navigating to localhost/testdir/news/10/45 gives me an "Object Not Found" error

    and i assume object not found also means "Page Not Found".
    and of course i have the .htaccess saved in the testdir folder.
    Last edited by modpluz; May 19th, 2006 at 06:03 PM.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: How to turn on Mod Rewrite in Apache - Help Needed

    Heh, this is the same issue I am having.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width