supermatthew Posted June 25, 2007 Share Posted June 25, 2007 Hello. I have been using IIS with asp.net for a while. I switched over to Apache and PHP after some very frustrating moments with IIS On IIS i had a rewriting utility that made any url "website.com/Page1" go to "website.com/defualt.aspx?Page=Page1" So i knew about the Mod_Rewrite but ive failed after many trys. I'm using .htaccess to store it( woulden't want my forums to redirect) and i have reduced it to this and its still not working... # # /abc/def/.htaccess -- per-dir config file for directory /abc/def # Remember: /abc/def is the physical path of /xyz, i.e., the server # has a 'Alias /xyz /abc/def' directive e.g. # RewriteEngine On # let the server know that we were reached via /xyz and not # via the physical path prefix /abc/def RewriteBase / # now the rewriting rules RewriteRule ^(.*)$ /pages.php?Page=$1 [L] Am i doing something wrong? Quote Link to comment Share on other sites More sharing options...
hackerkts Posted June 30, 2007 Share Posted June 30, 2007 I'm not sure if it works, try this .htaccess RewriteEngine on RewriteRule (.*) defualt.aspx?Page=$1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.