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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.