Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

newbe mod_rewrite question

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Newbe question Login - Hi.. I have my files uploaded on Apache server into SSL protected folder... when I try to view the page then the Forbidden message appears! I want here to the Login UserName and password dialog ask me! for login. Is this possible? I have plesk control

Simple newbe .htaccess question.. - Hi, I have a private web site running on Apache2 on Mandrake 10, and am access using a .htaccess file a password, ie AuthName "If your names not down your not coming in." AuthType Basic (some Require..

vhosting on XP - just starting newbe - I have done the *:80> ErrorLog CustomLog and..

the other question - apachecl return Syntax OK here is the file that pulls the code <body

SSL question - Hi! I have the following setup for one of my virtual domains:
Next:  Apache: differences between Apache 1.3 and 2.0 ?  
Author Message
wkutting1

External


Since: Sep 03, 2004
Posts: 12



(Msg. 1) Posted: Tue Apr 19, 2005 11:55 am
Post subject: newbe mod_rewrite question
Archived from groups: alt>apache>configuration (more info?)

Hi,
i can't get my url-rewriting running.

I like to rewrite www.foopage.com/dir/foo.html to /dir/index.php?boo=foo
just to look for for the index.php in the requesting directory and then
in the root directory

With
RewriteRule ([a-zA-Z0-9]+).html index.php?boo=$1
apache always uses the index.php under root (www.foopage.com/index.php)
and not in the requesting page (www.foopage.com/dir/index.php)

How can i accomplish that?

 >> Stay informed about: newbe mod_rewrite question 
Back to top
Login to vote
justin3

External


Since: Dec 28, 2004
Posts: 25



(Msg. 2) Posted: Tue Apr 19, 2005 12:55 pm
Post subject: Re: newbe mod_rewrite question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Wilhelm Kutting wrote:

 > I like to rewrite <a style='text-decoration: underline;' href="http://www.foopage.com/dir/foo.html" target="_blank">www.foopage.com/dir/foo.html</a> to /dir/index.php?boo=foo
 > just to look for for the index.php in the requesting directory and then
 > in the root directory
 >
 > With
 > RewriteRule ([a-zA-Z0-9]+).html index.php?boo=$1
 > apache always uses the index.php under root (www.foopage.com/index.php)
 > and not in the requesting page (www.foopage.com/dir/index.php)
 >
 > How can i accomplish that?

RewriteBase /dir

Also, if you put the .htaccess with the rewriterule in "dir", it should
work as well.

If you have other rules, you may want to use some flags like L, NS, QSA,
etc. - especially if later rules would cause a match to "/dir/index.php"

--
Justin Koivisto - justin DeleteThis @koivi.com
<a style='text-decoration: underline;' href="http://koivi.com" target="_blank">http://koivi.com</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: newbe mod_rewrite question 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]