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 rule problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  flash communication server  
Author Message
user2866

External


Since: Jul 10, 2004
Posts: 11



(Msg. 1) Posted: Thu Jul 15, 2004 10:59 am
Post subject: rewrite rule problem
Archived from groups: alt>apache>configuration (more info?)

Hey,
I'm trying to rewrite
http://server/imageview4/show/Friends/thari
to
http://server/imageview4/index.php?album=Friends/thari

and
http://server/imageview4/show/Friends/thari/thati1.jpg
to
http://server/imageview4/index.php?album=Friends/thari&file=thari1.jpg

i have no idea on where to start, most i can acomplis is
that it puts averything after /imageview4/ behind
index.php?album=...

thanx in advance

 >> Stay informed about: rewrite rule problem 
Back to top
Login to vote
user2874

External


Since: Jul 14, 2004
Posts: 24



(Msg. 2) Posted: Thu Jul 15, 2004 8:50 pm
Post subject: Re: rewrite rule problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jorge Schrauwen wrote:

 > Hey,
 > I'm trying to rewrite
<font color=purple> > <a style='text-decoration: underline;' href="http://server/imageview4/show/Friends/thari</font" target="_blank">http://server/imageview4/show/Friends/thari</font</a>>
 > to

# no dot character in URI:
RewriteCond %{REQUEST_URI} ^/imageview4/show/[^\.]+$
RewriteRule /imageview4/show/(.*) /imageview4/index.php?album=$1 [L]

<font color=purple> > <a style='text-decoration: underline;' href="http://server/imageview4/index.php?album=Friends/thari</font" target="_blank">http://server/imageview4/index.php?album=Friends/thari</font</a>>
 >
 > and
<font color=purple> > <a style='text-decoration: underline;' href="http://server/imageview4/show/Friends/thari/thati1.jpg</font" target="_blank">http://server/imageview4/show/Friends/thari/thati1.jpg</font</a>>
 > to
<font color=purple> > <a style='text-decoration: underline;' href="http://server/imageview4/index.php?album=Friends/thari&file=thari1.jpg</font" target="_blank">http://server/imageview4/index.php?album=Friends/thari&file=thari1.jpg</font</a>>

# with a dot => two params:

RewriteCond %{REQUEST_URI} ^/imageview4/show/.+\..+$
RewriteRule /imageview4/show/(.+)/(.+\..+)
/imageview4/index.php?album=$1&file=$2 [L]

--
Paweł Zdziarski<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: rewrite rule problem 
Back to top
Login to vote
spam3

External


Since: Jul 01, 2003
Posts: 411



(Msg. 3) Posted: Thu Jul 15, 2004 11:56 pm
Post subject: Re: rewrite rule problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

faxe wrote:

 > Jorge Schrauwen wrote:
 >
 > # no dot character in URI:
 > RewriteCond %{REQUEST_URI} ^/imageview4/show/[^\.]+$
 > RewriteRule /imageview4/show/(.*) /imageview4/index.php?album=$1 [L]

RewriteRule imageview4/show/(.*) imageview4/index.php?album=$1 [L]

 > # with a dot => two params:
 >
 > RewriteCond %{REQUEST_URI} ^/imageview4/show/.+\..+$
 > RewriteRule /imageview4/show/(.+)/(.+\..+)
 > /imageview4/index.php?album=$1&file=$2 [L]

RewriteRule imageview4/show/(.+)/(.+\..+)
imageview4/index.php?album=$1&file=$2 [L]

--
Justin Koivisto - spam RemoveThis @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 rule problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Rewrite Rule Problem with Zope - I am setting up a Zope Site (zope) behind an Apache Server. I have the ReWrite rule working correctly: <VirtualHost 10.0.0.12:80> ServerName www.example.com ServerAlias example.com RewriteEngine on RewriteRule ^/(.*)..

Rewrite rule: is it right ? - Hi, I have changed my domain name and I need to redirect visitors to the new one, expecially users coming from search engines. So I have added a rewrite rule like this: RewriteRule ^(.*) http://newdomain.com$1 [L,R=permanent] Can anybody tell if it i...

rewrite rule - hi all can someone tell how i can traslate www.somesite.com/home/someuser to www.somesite.com/index.php?id=someuser it's possible with apache?i have to use a rewrite rule? help me please...

rewrite rule - Hi I want users of my site to be able to download video files, but only on specific conditions. To check these condition (to avoid hotlinking for example), I made a rewriterule: RewriteRule ([^.]*\.mpg) http://www2.tvreclames.nl/download.pl?file=$1 Fo...

Rewrite rule - I have a single Apache 1.3.6 server on my MacX Server (10.2.6) I have 15 Alexandria Library Servers at my schools. Our internal network is 10.0.0.0/8 with NAT to the outside. What I would like to do is add alink on each of the 15 locations web pages..
   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 ]