24, July 2008

what's wrong with this rule? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: what's wrong with this rule?
« previous next »
Pages: [1] Print

Author Topic: what's wrong with this rule?  (Read 917 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« on: Apr 14, 2006, 01:46:00 AM »

Hello,

I'm using this rule to have SE friendly URL's, the redirect works the good page is called but the GET vars are empty.

The link I want to rewrite is: http://www.domein.nl/gemeente/ameland Visit through proxy
into http://www.domein.nl/gemeente.php?gem=ameland Visit through proxy

This is my rule:
Code:
RewriteEngine on

rewriteCond %{REQUEST_URI} ^/gemeente/([a-z]{3,})
RewriteRule .* gemeente.php?gem=%1

Whats wrong?


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #1 on: Apr 14, 2006, 01:58:31 AM »

Maybe this ?

Code:
RewriteEngine on

rewriteCond %{REQUEST_URI} ^/gemeente/(.*)$
RewriteRule .* gemeente.php?gem=%1


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Apr 14, 2006, 02:00:51 AM »

Maybe this ?

Code:
RewriteEngine on

rewriteCond %{REQUEST_URI} ^/gemeente/(.*)$
RewriteRule .* gemeente.php?gem=%1

Thanks for your suggestion but the getvars are still empty :-(


Last blog : 4th of July Lottery from TemplateMonster.com
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Apr 14, 2006, 02:03:05 AM »

... what about some flags at the end of the rule?


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #4 on: Apr 14, 2006, 02:05:10 AM »


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Apr 14, 2006, 02:08:16 AM »

thanks, for these links...

strange that this information is availble inside the script gemeente,php

[REQUEST_METHOD] => GET
    [QUERY_STRING] =>
    [REQUEST_URI] => /gemeente/ameland
    [SCRIPT_NAME] => /gemeente.php
    [PATH_INFO] => /ameland


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7975
40807 credits
Members referred : 3



« Reply #6 on: Apr 14, 2006, 02:14:44 AM »

Then you can just use the REQUEST_URI to make it work

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2261
Tags : tutorials Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: what's wrong with this rule?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 24, 2008, 04:08:16 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.717
Total Topics: 7.379
Total Members: 3.709
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: nicesurf

27 Guests, 5 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.