[BlueOnyx:06853] Re: HTTP Redirects

Darrell D. Mobley dmobley at uhostme.com
Thu Mar 31 14:29:37 -05 2011


Damn, I even surprised myself! Glad it worked... :-)

> -----Original Message-----
> From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
> On Behalf Of Adam Lepp
> Sent: Wednesday, March 30, 2011 11:07 PM
> To: 'BlueOnyx General Mailing List'
> Subject: [BlueOnyx:06841] Re: HTTP Redirects
> 
> Darrell,
> 
> THANK YOU -- this does appear to have worked.
> Certainly more complex than what I'm used to.
> 
> 
> -----Original Message-----
> From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
> On
> Behalf Of Darrell D. Mobley
> Sent: Wednesday, March 30, 2011 9:57 PM
> To: 'BlueOnyx General Mailing List'
> Subject: [BlueOnyx:06838] Re: HTTP Redirects
> 
> In your siteX.include file in /etc/httpd/conf/vhosts/, put:
> 
> <Directory "/home/.sites/XX/siteX/web">
>    AllowOverride All
>    Options All
> </Directory>
> 
> In your .htaccess, put:
> 
> RewriteEngine On
> RewriteCond %{HTTP_HOST} ^XXXX.com [NC]
> RewriteRule ^(.*)$ http://www.XXXX.com/$1 [L,R=301]
> 
> > -----Original Message-----
> > From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
> > On Behalf Of Adam Lepp
> > Sent: Wednesday, March 30, 2011 7:50 PM
> > To: 'BlueOnyx General Mailing List'
> > Subject: [BlueOnyx:06837] Re: HTTP Redirects
> >
> > The site contains one domain (YYYY.com & www.YYYY.com), and several
> > aliases,
> > including XXXX.com.
> > The redirect is to www.XXXX.com
> >
> > I need it to use a 301, for SEO purposes.
> >
> >
> > -----Original Message-----
> > From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
> > On
> > Behalf Of Darrell D. Mobley
> > Sent: Wednesday, March 30, 2011 7:23 PM
> > To: 'BlueOnyx General Mailing List'
> > Subject: [BlueOnyx:06836] Re: HTTP Redirects
> >
> > Are you trying to redirect non-www traffic to a www domain?  Or are you
> > trying to redirect to another domain entirely?
> >
> > > -----Original Message-----
> > > From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-
> bounces at blueonyx.it]
> > > On Behalf Of Adam Lepp
> > > Sent: Wednesday, March 30, 2011 4:54 PM
> > > To: 'BlueOnyx General Mailing List'
> > > Subject: [BlueOnyx:06833] Re: HTTP Redirects
> > >
> > > Thanks Larry. Looks promising, but doesn't work :(
> > >
> > >
> > > -----Original Message-----
> > > From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-
> bounces at blueonyx.it]
> > > On
> > > Behalf Of Larry Smith
> > > Sent: Wednesday, March 30, 2011 4:40 PM
> > > To: BlueOnyx General Mailing List
> > > Subject: [BlueOnyx:06832] Re: HTTP Redirects
> > >
> > > According to webconfigs:
> > >
> > > <quote>
> > > Options +FollowSymLinks
> > > RewriteEngine on
> > > RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
> > > </quote>
> > >
> > > goes in the .htaccess file, but have not tried it myself...
> > >
> > > --
> > > Larry Smith
> > > lesmith at ecsis.net
> > >
> > > On Wed March 30 2011 15:30, Adam Lepp wrote:
> > > > I've been having the same problem, and am unable to solve despite
> > > various
> > > > attempts.
> > > >
> > > > >From error log:
> > > >
> > > > [Wed Mar 30 16:07:47 2011] [alert] [client XX.XX.XX.XX]
> > > > /home/.sites/31/site36/web/.htaccess: Redirect not allowed here
> > > >
> > > > .htaccess file:
> > > > redirect 301 / http://www.domain.com/
> > > >
> > > > Can someone provide me with the appropriate .htaccess content, as
> well
> > > as
> > > > any other necessitated steps?
> > > >
> > > > Thanks!
> > > > --Adam L.
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-
> > bounces at blueonyx.it]
> > > On
> > > > Behalf Of Robert Fitzpatrick
> > > > Sent: Monday, August 24, 2009 6:38 PM
> > > > To: charlesbowman at wknet.co.uk; BlueOnyx General Mailing List
> > > > Subject: [BlueOnyx:02184] Re: HTTP Redirects
> > > >
> > > > On Sun, 2009-08-23 at 20:01 +0100, Charles Bowman wrote:
> > > > > A few questions:
> > > > >
> > > > > 1. What does the log say? (/var/log/httpd/error_log)
> > > >
> > > > [Mon Aug 24 18:26:53 2009] [alert] [client
> > > > 72.64.244.51] /home/.sites/120/site35/web/.htaccess: Invalid command
> > > > '\xef\xbb\xbfRedirect', perhaps misspelled or defined by a module
> not
> > > > included in the server configuration
> > > >
> > > > > 2. Is HTACCESS enabled for the site in question: Log in to the web
> > GUI
> > > as
> > > > > admin: Network Services --> Web
> > > >
> > > > I don't see an HTACCESS option, but have enabled FileInfo after
> > finding
> > > > on the apache site this was necessary to override using .htaccess
> > > >
> > > > > 3. Is the .HTACCESS file in the root of the public website.
> > > >
> > > > Yes - /home/.sites/120/site35/web/.htaccess
> > > >
> > > > > 4. Permissions of the HTACCESS file or the destination file - make
> > > sure
> > > >
> > > > not
> > > >
> > > > > root or admin - should be the superuser of the site.
> > > >
> > > > Owner is site administrator of the vsite. Group is site35 (644).
> > > >
> > > > > 5. Is the destination file dynamic?
> > > >
> > > > No, not dynamic, the destination file is plain HTML code...in this
> > > > failing redirect...
> > > >
> > > > Redirect 301 /water_removal_test.html
> > > > http://www.sm24hr.com/water_removal.htm
> > > >
> > > > water_removal_test.html does not exist on the hard drive and the
> > > > water_removal.htm, which is in the same vsite is...
> > > >
> > > > -rw-r--r-- 1 debanks site35 13K Aug 20 14:20 water_removal.htm
> > > >
> > > > Thanks for any help!
> > > _______________________________________________
> > > Blueonyx mailing list
> > > Blueonyx at blueonyx.it
> > > http://www.blueonyx.it/mailman/listinfo/blueonyx
> > >
> > > _______________________________________________
> > > Blueonyx mailing list
> > > Blueonyx at blueonyx.it
> > > http://www.blueonyx.it/mailman/listinfo/blueonyx
> >
> > _______________________________________________
> > Blueonyx mailing list
> > Blueonyx at blueonyx.it
> > http://www.blueonyx.it/mailman/listinfo/blueonyx
> >
> > _______________________________________________
> > Blueonyx mailing list
> > Blueonyx at blueonyx.it
> > http://www.blueonyx.it/mailman/listinfo/blueonyx
> 
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx
> 
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx




More information about the Blueonyx mailing list