Alain Roger wrote:
Hi,
i would like to rewrite some of my pages so i have the following
.htaccess file under my subfolder _sub/test/
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^article-([0-9]+)-([0-9]+)\.php$
article.php?numero=$1page=$2 [L]
i also have 1 file article.php
Hi,
i would like to rewrite some of my pages so i have the following .htaccess
file under my subfolder _sub/test/
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^article-([0-9]+)-([0-9]+)\.php$ article.php?numero=$1page=$2
[L]
i also have 1 file article.php which only display the numero
On Sep 2, 2008, at 8:01 AM, Krist van Besien wrote:
On Tue, Sep 2, 2008 at 13:12, Jason Pruim [EMAIL PROTECTED] wrote:
Hi Everyone,
Thanks for your help on this! I ended up changing my thinking a little
bit and ended up doing a subdomain since I found out the server that
is going to
On Aug 29, 2008, at 10:10 AM, Krist van Besien wrote:
On Fri, Aug 29, 2008 at 15:21, Jason Pruim [EMAIL PROTECTED] wrote:
Look in to your log:
It says:
[127.0.0.1/sid#1802648][rid#1836238/initial] (4) RewriteCond:
input='GET' pattern='^TRACE' = not-matched
What exactly do you have in your
On Tue, Sep 2, 2008 at 6:20 AM, Jason Pruim [EMAIL PROTECTED] wrote:
RewriteEngine on
RewriteLog /var/log/httpd/rewrite.log
RewriteLogLevel 9
RewriteRule /(.*) p.php?purl=$1
Outside of directory/location/htaccess, you have to rewrite to an
absolute path,
On Sep 2, 2008, at 6:54 AM, Eric Covener wrote:
On Tue, Sep 2, 2008 at 6:20 AM, Jason Pruim [EMAIL PROTECTED]
wrote:
RewriteEngine on
RewriteLog /var/log/httpd/rewrite.log
RewriteLogLevel 9
RewriteRule /(.*) p.php?purl=$1
Outside of
On Sep 2, 2008, at 8:01 AM, Krist van Besien wrote:
On Tue, Sep 2, 2008 at 13:12, Jason Pruim [EMAIL PROTECTED] wrote:
and this is my log file entry:
127.0.0.1 - - [02/Sep/2008:07:06:14 -0400]
[127.0.0.1/sid#1802648][rid#1836238/initial] (2) init rewrite
engine with
requested uri
On Thu, Aug 28, 2008 at 17:21, Jason Pruim [EMAIL PROTECTED] wrote:
It is case 1 that I want. I want people to be able to type in:
HTTP://www.raoset.com/jasonpruim112 and have my script at:
HTTP://www.raoset.com/purl/purl.php?purl=jasonpruim112 take over control.
OK, than this rule:
RewriteRule
On Fri, Aug 29, 2008 at 15:21, Jason Pruim [EMAIL PROTECTED] wrote:
Look in to your log:
It says:
[127.0.0.1/sid#1802648][rid#1836238/initial] (4) RewriteCond:
input='GET' pattern='^TRACE' = not-matched
What exactly do you have in your config? Looks like you have a
RewriteCond somewhere, that
Hi Everyone,
Just recently joined this list so I apologize upfront for the toes
that I'm about to stomp on!
I am trying to understand mod rewrite, and not having much luck... I
am looking to do what I feel would be a simple rewrite but have not
found the answer or could not understand
On Thu, Aug 28, 2008 at 14:41, Jason Pruim [EMAIL PROTECTED] wrote:
What I want to do is to rewrite this url:
HTTP://www.raoset.com/purl/customer/index.php?purl=jasonpruim112
To something more like:
HTTP://www.raoset.com/jasonpruim112
In what direction do you want the rewrite? Do you want:
On Aug 28, 2008, at 9:21 AM, Krist van Besien wrote:
On Thu, Aug 28, 2008 at 14:41, Jason Pruim [EMAIL PROTECTED] wrote:
What I want to do is to rewrite this url:
HTTP://www.raoset.com/purl/customer/index.php?purl=jasonpruim112
To something more like:
HTTP://www.raoset.com/jasonpruim112
On Wed, Feb 27, 2008 at 2:40 AM, chengas123 [EMAIL PROTECTED] wrote:
However, I still have one bug left in this implementation, which shows up
when I request a directory without a trailing slash. For example,
lumidant.com/contact becomes lumidant.com/lumidant/contact/ because Apache
does
Yes, that essentially is exactly what I'd like to do. However, I'm not sure
how to. I know how to test if the requested resource is a directory, but
does anyone have any ideas on how I would test if the rewritten URL is an
existing directory?
Also, thanks for the tip on disabling directory
On 27/02/2008, chengas123 [EMAIL PROTECTED] wrote:
Yes, that essentially is exactly what I'd like to do. However, I'm not sure
how to. I know how to test if the requested resource is a directory, but
does anyone have any ideas on how I would test if the rewritten URL is an
existing
Thanks noodl. This is a good idea, which I would like to use. I can't
figure out how %{REQUEST_FILENAME} works though!
If I use RewriteCond %{REQUEST_FILENAME} -d it only ever returns when I
visit my homepage at lumidant.com. I used only this rule in my .htaccess
and had it redirect to
Thank you all for your help. There were a couple problems I was having. The
biggest turned out to be an .htaccess file in another directory interfering
with this one, which made it very hard to figure out what was going on.
Thanks again,
Ben
chengas123 wrote:
Thanks noodl. This is a
Hi,
I signed up for a hosting account that can support many domains. One domain
is the root web folder and all the others are subdirectories in that folder.
This gets confusing to maintain, so I’d like to move the main domain into a
sub directory too.
I’ve gotten pretty far using mod_rewrite:
Hey,
I have 3 domains with various subdomains. The domains are kilu.de,
kilu2.de and kilu3.de
I want that all requests to [www.]kilu2.de or [www.]kilu3.de are
redirected to [www.]kilu.de.
Now I'm looking for the best mod_rewrite solution. Here is what I got
right now:
RewriteEngine On
Samuel Vogel wrote:
Hey,
I have 3 domains with various subdomains. The domains are kilu.de,
kilu2.de and kilu3.de
I want that all requests to [www.]kilu2.de or [www.]kilu3.de are
redirected to [www.]kilu.de.
Now I'm looking for the best mod_rewrite solution. Here is what I got
right now:
Hi Pane,thanks a lot, I guess the (.*) was the _expression_ I was looking for.Great!Gregor-- what's puzzlin' you, is the nature of my game
Hi guys,I've just walked through the docs of mod_rewrite and I got overwhelmed by the complexity of it :(Actually I just want to do quite a simple thing:If my URI contains/SingleSignOn/SingleSignOn?r=/dom[plus_some_other_stuff_here]
change it to/SingleSignOn/SingleSignOn?r=/domIf I got the docs
RewriteEngine onRewriteRule /SingleSignOn/SingleSignOn?r=/dom(.*) /SingleSignOn/SingleSignOn?r=/domI think this ought to work. Without having a more accurate example I might be wrong,but I think this will do it... Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Sep
Hey There,After reading the faq, docs, and browsing the usenet I'm still stumped.Here's the setup.My work is using port based virtual servers to manage our dev projects. So same IP address, but it will server up a different docroot depending on the port number.
I've put the 'RewriteEngine on' in
On 8/24/06, Eoin Coffey [EMAIL PROTECTED] wrote:
Hey There,
After reading the faq, docs, and browsing the usenet I'm still stumped.
Here's the setup.
My work is using port based virtual servers to manage our dev projects. So
same IP address, but it will server up a different docroot
Removed the .htaccess file and added the two lines to the VirtualHost directive.Instead of a 404 error I get a 400 error now.-EoinOn 8/24/06,
Joshua Slive [EMAIL PROTECTED] wrote:On 8/24/06, Eoin Coffey
[EMAIL PROTECTED] wrote: Hey There, After reading the faq, docs, and browsing the usenet I'm
On 8/24/06, Eoin Coffey [EMAIL PROTECTED] wrote:
Removed the .htaccess file and added the two lines to the VirtualHost
directive.
Instead of a 404 error I get a 400 error now.
-Eoin
On 8/24/06, Joshua Slive [EMAIL PROTECTED] wrote:
On 8/24/06, Eoin Coffey [EMAIL PROTECTED] wrote:
Hey
...right. well in any eventI have it working now.
Thanks for the help :-)
-Eoin
On 8/24/06, Joshua Slive [EMAIL PROTECTED] wrote:
On 8/24/06, Eoin Coffey [EMAIL PROTECTED] wrote: Removed the .htaccess file and added the two lines to the VirtualHost
directive. Instead of a 404 error I get a 400
thanks a lot Vincent, I will try this on Monday.
On 7/21/06, Vincent Bray [EMAIL PROTECTED] wrote:
On 7/21/06, Vincent Blondel [EMAIL PROTECTED] wrote:
I would like to forward traffic from (dmz)
http://people.domain/~username
to (lan) http://username.srv.intranet.
I found such type
Can somebody help me please ... thanks a lot.
Regards
Vincent
Hello all,
I get mod_proxy running in my dmz to forward http traffic from internet to
my trusted area. This is working fine except that I have to implement a
new type of config for a special host.
I would like to forward
On 7/21/06, Vincent Blondel [EMAIL PROTECTED] wrote:
I would like to forward traffic from (dmz) http://people.domain/~username
to (lan) http://username.srv.intranet.
I found such type of example to resolve this case but I do not know if
this is the right way to do it and I do not find any
On 7/21/06, Vincent Bray [EMAIL PROTECTED] wrote:
On 7/21/06, Vincent Blondel [EMAIL PROTECTED] wrote:
I would like to forward traffic from (dmz) http://people.domain/~username
to (lan) http://username.srv.intranet.
I found such type of example to resolve this case but I do not know if
On 3/12/06, Paul Aviles [EMAIL PROTECTED] wrote:
I am pulling my hair out with this. I have a single public IP and already
have a web server redirected on the firewall from the external IP to the
private IP of 10.5.36.5. Now I need to enable another box (10.5.36.6)
running on port 80 to be
That is correct. My understanding is that Cisco Pix 505 can't do the port
forwarding so that is the reason why I was looking on doing this.
If the only option you have is to open port 81 on the fw and send it
to port 81 on the same 10.5.36.5, you have to to configure iptable on
10.5.36.5 to
Hi
I am pulling my hair out with this. I have a single public IP and already
have a web server redirected on the firewall from the external IP to the
private IP of 10.5.36.5. Now I need to enable another box (10.5.36.6)
running on port 80 to be accessible from the outside.
10.5.36.6 is a
+0100
Subject: Re: [EMAIL PROTECTED] mod_rewrite question
Hi
I am pulling my hair out with this. I have a single public IP and already
have a web server redirected on the firewall from the external IP to the
private IP of 10.5.36.5. Now I need to enable another box (10.5.36.6)
running
I want to redirect certain requests to a pdf depending on a get
variable. nothing new, but I just can't get it to work. So I started
with the basics but just redirecting a certain page to a pdf, which
works.
RewriteRule ^/test\.php$ /pdf/somefile.pdf$ [R,T=application/pdf]
Which
RewriteEngine On
RewriteCond ${QUERY_STRING} file
RewriteRule ^/test\.php$ /index.php [R]
Well i fixed my typo ${QUERY_STRING}, it should be %{QUERY_STRING}.
But still not working.
-
The official User-To-User support
I got it.
RewriteCond %{QUERY_STRING} ^file\=12$
RewriteRule ^/test\.php$ /pdf/somfile.pdf [R,L,T=application/pdf]
Looks like i needed regex in the RewriteCond.
Thanks.
-
The official User-To-User support forum of the Apache
Tony VanScoy wrote:
I got it.
RewriteCond %{QUERY_STRING} ^file\=12$
RewriteRule ^/test\.php$ /pdf/somfile.pdf [R,L,T=application/pdf]
Looks like i needed regex in the RewriteCond.
Thanks.
That was my bad on the % to $ typo. Sorry.
The last argument for the Rewrite Cond can be either a
I want to redirect certain requests to a pdf depending on a get
variable. nothing new, but I just can't get it to work. So I started
with the basics but just redirecting a certain page to a pdf, which
works.
RewriteRule ^/test\.php$ /pdf/somefile.pdf$ [R,T=application/pdf]
Which works fine. But,
Tony VanScoy wrote:
I want to redirect certain requests to a pdf depending on a get
variable. nothing new, but I just can't get it to work. So I started
with the basics but just redirecting a certain page to a pdf, which
works.
RewriteRule ^/test\.php$ /pdf/somefile.pdf$ [R,T=application/pdf]
->
Re: [EMAIL PROTECTED] mod_rewrite question
users
-- Thread --
-- Date --
<!--
google_ad_client = "pub-7266757337600734";
google_alternate_ad_url = "http://www.mail-
43 matches
Mail list logo