Ok, I got it working with the following configuration:
# /etc/httpd/conf/vhosts/site34.include
# user customizations can be added here.
<Directory "/home/.sites/58/site34/web">
AllowOverride FileInfo
</Directory>
.htaccess at the root of the web directory
Redirect 301 /niihau/ http://www.somesite.com/index.php?topic=Niihau
Redirect 301 /kauai/ http://www.somesite.com/index.php?topic=Kauai
Redirect 301 /maui/ http://www.somesite.com/index.php?topic=Maui
Redirect 301 /oahu/ http://www.somesite.com/index.php?topic=Oahu
Redirect 301 /hawaii/ http://www.somesite.com/index.php?topic=Hawaii
Redirect 301 /lanai/ http://www.somesite.com/index.php?topic=Lanai
Redirect 301 /molokai/ http://www.somesite.com/index.php?topic=Molokai
Redirect 301 /kahoolawe/ http://www.somesite.com/index.php?topic=kahoolawe
Thanks to everyone. It seemed using the http://www. was the trick
and only needing the AllowOverride FileInfo was the other part. This
is the bare minimum configuration. I tried it all.
There is only one thing left. If I put in the URL
http://www.somesite.com/niihau/whatever it will redirect to
http://www.somesite.com/index.php?topic=whatever. I think it is the
way the rewrite module works with RexEx. Any ideas. Ideally, I
would want /niihau/whatever and /niihau/anythingelseyoucanthinkof to
rediect to http://www.somesite.com/index.php?topic=Niihau. I tried
using some RegEx but I haven't cut it yet.
Ideas?
-Rashid
At 07:23 PM 7/2/2007, MuntadaNet Webmaster wrote:
>No messages and yes I did restart. I have been messing all day and
>read through the Apache rewrite module. Still getting no where but
>here is my config as of now. This doesn't error out but it doesn't
>do anything either:
>
># /etc/httpd/conf/vhosts/site34.include
># user customizations can be added here.
><Directory "/home/.sites/58/site34/web">
> AllowOverride All
> Options All
></Directory>
>
>.htaccess
>Options +FollowSymLinks
>RewriteEngine on
>RewriteBase /
>RewriteRule ^/niihau$ /index.php?topic=Niihau [R=301]
>RewriteRule ^/niihau/$ /index.php?topic=Niihau [R=301]
>RewriteRule ^/niihau/*(.*)$ /index.php?topic=Niihau [R=301]
>
>At 06:40 PM 7/2/2007, you wrote:
>>Anything in /var/log/messages when you made changes?
>>
>>Have you restarted httpd?
>>
>>
>>Best,
>>
>>--
>>Arthur Sherman
>>
>>
>> > -----Original Message-----
>> > From: Abdul-Rashid Abdullah [mailto:webmaster (at mark) muntada.com]
>> > Sent: Monday, July 02, 2007 3:57 PM
>> > To: coba-e (at mark) bluequartz.org
>> > Subject: [coba-e:10288] Re: .htaccess redirect
>> >
>> > Thanks Nick for your suggestion.
>> >
>> > I added the below with the correct modifications.
>> >
>> > <Directory "/home/.sites/XX/site#/web">
>> > AllowOverride All
>> > Options All
>> > </Directory>
>> >
>> > That didn't work. I modified my .htaccess file to have the
>> > following now:
>> >
>> > RewriteEngine On
>> > RewriteBase /
>> > Options +FollowSymLinks
>> > Redirect 301 /niihau /index.php?topic=Niihau
>> >
>> > That didn't work either. So I took everything out and just
>> > redirect it to
>> > the Redirect line. I think the Options line will be handy
>> > later. But that didn't work either.
>> >
>> > I then changed the Directory directive to since the .htaccess
>> > file was in the niihau directory.
>> >
>> > <Directory "/home/.sites/58/sit34/web/niihau">
>> > AllowOverride All
>> > Options All
>> > </Directory>
>> >
>> > The .htaccess looked like this:
>> >
>> > RewriteEngine On
>> > RewriteBase /
>> > Redirect 301 /niihau /index.php?topic=Niihau
>> >
>> > Still no luck? Any other ideas?
>> >
>> >
>> >
>> >
>> >
>> >
>> > On 7/1/07 10:07 AM, "Abdul-Rashid Abdullah"
>> > <webmaster (at mark) muntada.com> wrote:
>> >
>> > > I want to redirect a webpage from /kauai/ to
>> > /index.php?topic=Kauai.
>> > > I created a .htaccess file in the directory /kauai/ with
>> > the following linke:
>> > >
>> > > Redirect 301 /kauai /index.php?topic=Kauai
>> > >
>> > > I am getting the following error:
>> > >
>> > > Internal Server Error
>> > > The server encountered an internal error or
>> > misconfiguration and
>> > > was unable to complete your request. Your administrator may
>> > not have
>> > > enabled CGI access for this directory.
>> > >
>> > > I believe it is because Apache needs some modification to
>> > allow this
>> > > type of activity within the .htaccess. Can anyone help me
>> > out with a quick how to?
>> > >
>> > > -Rashid
>> > >
>> > >
>> >
>> >
>> >
>> >
>
>*****************************************************************
>MuntadaNet Web Hosting and Web Design Services
>http://www.muntada.com
>
>Sales - sales (at mark) muntada.com
>Support - support (at mark) muntada.com
>Billing - billing (at mark) muntada.com
>
>Main Office - 808-689-6092
>Fax - (808) 356-0279
>*****************************************************************
*****************************************************************
MuntadaNet Web Hosting and Web Design Services
http://www.muntada.com
Sales - sales (at mark) muntada.com
Support - support (at mark) muntada.com
Billing - billing (at mark) muntada.com
Main Office - 808-689-6092
Fax - (808) 356-0279
*****************************************************************