Jump to content

kind of noob question..


supermatthew

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.