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? Link to comment https://forums.phpfreaks.com/topic/57119-kind-of-noob-question/ 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 Link to comment https://forums.phpfreaks.com/topic/57119-kind-of-noob-question/#findComment-286454 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.