RewriteEngine consulting

This is a discussion on RewriteEngine consulting within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, can someone help me with consulting to migrate to a RewriteEngine configuration? This looks like more than I can ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-17-2007
Paul Furman
 
Posts: n/a
Default RewriteEngine consulting

Hi, can someone help me with consulting to migrate to a RewriteEngine
configuration? This looks like more than I can bite off, I could use
some help.

Thanks,
Paul

Jerry Stuckle wrote:
>
> I'd suggest you try asking in alt.apache.configuration. That's where
> those gurus hang out.


> Paul Furman wrote:
>
>>>>>> Right now I've got urls & code like this:
>>>>>> http://www.edgehill.net/1/?SC=go.php&DIR=California
>>>>
>>>>>> But I'd prefer:
>>>>>> http://www.edgehill.net/California
>>>>
>>>>>> I'd like to see at most:
>>>>>> http://www.edgehill.net/California/B...San-Francisco/
>>>>
>>>>> If your hosting company allows .htaccess files, add these lines to
>>>>> your .htaccess file in the site's root directory:
>>>>
>>>>> RewriteEngine on
>>>>> RewriteRule ^California(.*)$ /1/?SC=go.php&DIR=California$1 [NC,L]
>>>>
>>>>> This should do the trick.
>>>>
>>>> Looks cool, from what I can tell, the only thing to learn is the
>>>> syntax & rule evaluating order.
>>>
>>> Hence, the links:
>>>
>>> http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
>>> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

>>
>> Ack... regular expressions!!!!!!!!!
>>
>> Anyone interested in a little consulting to get me up to speed on a
>> basic framework for this system, please email. I've got a couple web
>> sites that could use this upgrade but it's beyond me for now to even
>> get a basic effect to take hold with .htaccess on the first one I tried.
>>
>>>> Sounds like I could set up however big an htaccess file to
>>>> identify my simplified structure but maybe at some point
>>>> it would take a hit on performance... or not if I figure
>>>> out how to tell it to stop searching the rule list.
>>>
>>> That's actually easy; you put [L] (meaning, "last") after the rule.
>>> If Apache executes a rule with [L] after it, it stops looking for
>>> other rules to execute.


--
Paul Furman Photography
http://www.edgehill.net/1
Bay Natives Nursery
http://www.baynatives.com

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:09 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0