Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005

    * simple mod_rewrite needed.. please help!!

    Suppose my domain is

    if a request of this kind is made:{any word}/something

    I want to rewrite it to:

    And if these 2 types of requests are made:{any word}{any word}/

    I want them to be rewrited to:

    Rewrite is necessary as POST data needs to be preserved. Redirect won't work thus..

    Please help me with the .htaccess code.

  2. #2
    Join Date
    Sep 2000
    Try this:

    RewriteEngine On
    RewriteRule ^/.*/(.*)    /myfiles/$1
    RewriteRule ^/(.*)     /myfiles/index.php
    This code may need to be revised as I haven't actually tested it, but do give it a try and if it doesn't work let me know.

  3. #3
    Join Date
    Jan 2005
    Gives 404 error with all these URLs

    even though 'myfiles' directory contains 'index.php' and 'page.php'

Posting Permissions

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