[BNM] Mod rewrite problem

Steve Purkiss steve at purkiss.com
Wed Jan 7 12:32:16 GMT 2009


You could set it to / or /html, depends on your hosting setup - if
it's on shared hosting and you have cpanel or similar it will give you
hints.

Sometimes you don't need the rewritebase explicitly set, but if it's
getting a 404 that's a good place to start.

Also double-check your rewriterule syntax - there's an example on the
link I sent.

On Wed, Jan 7, 2009 at 12:23 PM, Julian Blundell <old at w34u.com> wrote:
> Any idea what I should set the Rewrite base to Steve?
>
> Jules
>
> 2009/1/7 Steve Purkiss <steve at purkiss.com>
>
>> Have you tried setting your RewriteBase?
>>
>> http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteBase
>>
>> On Wed, Jan 7, 2009 at 11:14 AM, Julian Blundell <old at w34u.com> wrote:
>> > Hi
>> >
>> > Got a little mod -rewrite problem, should work but does not.
>> >
>> > trying to get
>> > www.studiopottery.co.uk/html/jennybeavan.html
>> >
>> > to divert to
>> > <
>> http://www.studiopottery.co.uk/potter_profile.php?id=39&name=Jenny-Beavan%29
>> >
>> > www.studiopottery.co.uk/potter_profile.php?id=39
>> >
>> > got this in the .htaccess file in the /html directory
>> >
>> > Options +followsymlinks
>> >
>> > # Turn on the rewriting engine
>> > RewriteEngine On
>> >
>> > RewriteRule ^/html/jennybeavan.html$
>> > www.studiopottery.co.uk/potter_profile.php?id=39 [R,L]
>> >
>> > Does it work, does it hell. Just cant find the file and diverts to 404
>> and
>> > then the home page.
>> >
>> > Any help much appreciated.
>> >
>> > Jules
>> > --
>> >
>> > BNM Subscribe/Unsubscribe:
>> > http://www.brightonnewmedia.org/options/bnmlist
>> >
>> > BNM powered by Wessex Networks:
>> > http://www.wessexnetworks.com
>> >
>>
>>
>>
>> --
>> Steve Purkiss
>>
>> http://stevepurkiss.com
>> http://twitter.com/stevepurkiss
>> --
>>
>> BNM Subscribe/Unsubscribe:
>> http://www.brightonnewmedia.org/options/bnmlist
>>
>> BNM powered by Wessex Networks:
>> http://www.wessexnetworks.com
>>
> --
>
> BNM Subscribe/Unsubscribe:
> http://www.brightonnewmedia.org/options/bnmlist
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
>



-- 
Steve Purkiss

http://stevepurkiss.com
http://twitter.com/stevepurkiss


More information about the BNMlist mailing list. Powered by Wessex Networks