28, May 2012

what's wrong with this rule? - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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


It's time to use PHP5!


« on: Apr 14, 2006, 12: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
into http://www.domein.nl/gemeente.php?gem=ameland

This is my rule:
Code:
RewriteEngine on

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

Whats wrong?

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Apr 14, 2006, 12: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Apr 14, 2006, 01: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 :-(

Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Apr 14, 2006, 01:03:05 am »

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

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #4 on: Apr 14, 2006, 01:05:10 am »


Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Apr 14, 2006, 01: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

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #6 on: Apr 14, 2006, 01: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 or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2261
Tags : tutorials Bookmark this thread : Digg Del.icio.us Dzone more....

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?
May 28, 2012, 11:28:58 am





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!






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