Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

rewrite - everybodies favorite...

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  DirectoryIndex  
Author Message
newjackswing

External


Since: Aug 14, 2003
Posts: 2



(Msg. 1) Posted: Thu Aug 14, 2003 10:36 pm
Post subject: rewrite - everybodies favorite...
Archived from groups: alt>apache>configuration (more info?)

Hi all,

I think mine is a simple but confusing problem...

I have a program which accesses a site as such :

http://domain.com/code/update?file=filename

Now, the "update" is nor a file or directory but I want to make it either
rewrite to :

..../code/update/?file=filename (dir)
or
..../code/update.php?file=filename (filename)


how the hell is this done with rewrite, I'm always getting 301 errors and
need it to work and return 200 if possible...

any help appreciated.
thanks..

 >> Stay informed about: rewrite - everybodies favorite... 
Back to top
Login to vote
spam3

External


Since: Jul 01, 2003
Posts: 411



(Msg. 2) Posted: Thu Aug 14, 2003 10:36 pm
Post subject: Re: rewrite - everybodies favorite... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dj Tremors wrote:

 > Hi all,
 >
 > I think mine is a simple but confusing problem...
 >
 > I have a program which accesses a site as such :
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://domain.com/code/update?file=filename</font" target="_blank">http://domain.com/code/update?file=filename</font</a>>
 >
 > Now, the "update" is nor a file or directory but I want to make it either
 > rewrite to :
 >
 > .../code/update/?file=filename (dir)
 > or
 > .../code/update.php?file=filename (filename)

One way you may be able handle it is to do something like:
RewriteRule ^code/update$ code/update.php [L,QSA]
or
RewriteRule ^code/update$ code/update/ [L,QSA]

--
Justin Koivisto - spam.DeleteThis@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: rewrite - everybodies favorite... 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
REWRITE - I have a movie download site and what i need is that if users are linking my files (like http://www.eengoedidee.nl/videoz/bmx/jib.mpg) that they come to a page for the download. Like this..

mod rewrite question - I'm hoping I can get an answer to one of the 4 questions I've posted to this group over the last couple of months, so here goes. I'm serving XHTML files as application/xhtml+xml as they should be. But IE doesn't like this. What I wanted to do was us...

Rewrite to another Port - Hi, can somebody tell me how to make a ReWrite Rule for changing port ? Example: User calls sub.domain.com and rewrite should go to sub.domain.com:82 ? Thanks for your help. Bye, Fabian

ReWrite Rules - Hi, Currently my homepage is http://www.indigoclothing.com/index.shtml However I would now want my homeapge to be: http://www.indigoclothing.com/cgi-bin/page.cgi?d=1&page=homepage The dynamic page is different from the static one as the featured...

virtualhost/rewrite help needed - Hi I have a (probably simple) vh (and maybe rewrite?) problem - the rule is simple at least and should work IMO - it's strange to me why it doesn't. This is what i do: NameVirtualHost 217.160.75.67 ### ...several vh... <VirtualHost openspirit.d...
   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 ]