Results 1 to 6 of 6
  1. Default Need quick apache help


    For some reason, I forgot how to do this with mod_rewrite.

    Okay. I have a bunch of files like this:

    http://www.example.com/200.php
    http://www.example.com/300.php
    http://www.example.com/400.php

    So on and so forth. But, I only want people to type in:

    http://www.example.com/200

    and it will redirect them to:

    http://www.example.com/200.php

    I cannot use Redirect 301's, I can only use mod_rewrite

    Any help?

  2. Default


    copy pasteahhhhh


  3. Default


    Thanks X->L, but now I just realized my webhost isn't processing my .htaccess file. O_o

    I put "deny from all" line and didn't get a 403 error.

  4. Default


    Wouldn't it be easier to do it with mod_alias than mod_rewrite? That's how I'd think of doing something like this. I've never done something like this since my server is just for private use. I'll test a bit, give me a second.

  5. DUCKS
    IGN: Mondays
    Server: Bellocan
    Level: 170
    Job: White Knight
    Guild: Affinity
    Alliance: Honour
    norway

    Default


    Check your error-log. If no reference to .htaccess is around, check AllowOverride, even though you've probably already checked that.

  6. Default


    Shared hosting, so there's no error log to check. After looking around, it seems that it takes several hours for .htaccess to get enabled on my host (previously disabled). Thanks for the help, guys. I'll just wait for it to get enabled.

  7.  

Bookmarks

Posting Permissions

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