Jump to content

mod_rewrite question

Recommended Posts

Hello,I'm a mod_rewrite newbie. I want to do the following :If a user visits www.mysite.com/ (numbers only)to be forwarded to : www.mysite.com/test.php?number= ( what ever the user entered above )But, if anything other than numbers is entered it doesn't forward to that page. Instead it takes them to www.mysite.comAnd if a user visits an existing page, nothing should be done (e.x www.mysite.com/example.php)Thank you

Link to post
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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