aliasing a URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rspark07
    New Member
    • Feb 2008
    • 6

    aliasing a URL

    Lets say I want to alias a URL based on the following example:

    User types 'http://website.com/page/hotdogs'

    I want this to then be aliased to 'http://website.com/process.php?id= hotdogs

    I looked as aliasmatch, and scriptaliasmatc h, but I couldn't find any good examples on how to accomplish this.

    -RP
  • rspark07
    New Member
    • Feb 2008
    • 6

    #2
    My problem looks to be that apache is not processing my Rewrite or Alias commands.

    I have made sure the Rewrite Module is uncommented out, and I am testing with the following lines of code in the httpd.conf file.

    # Rewrite URL's
    RewriteEngine on
    RewriteRule ^/oldstuff$ Register.php

    I then restart the webserver, and type 'http://localhost/oldstuff' which I would expect would rename the URL to http://localhost/Register.php

    Instead I get a HTTP 400 Bad Request. Help.

    Comment

    • rspark07
      New Member
      • Feb 2008
      • 6

      #3
      I was able to get this to work with .htaccess file only, and not with the httpd.conf file.

      Comment

      Working...