Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
301 redirect canonical forbidden error
Old 02-09-2010, 03:53 PM Smile 301 redirect canonical forbidden error
Junior Talker

Posts: 3
Name: John
Trades: 0
Hello everyone - I designed a website for a friend here: http://bit.ly/qw8U4

I'm trying to redirect from:
example.com -> www.example.com
and
nn.nnn.nnn.nnn -> www.example.com

and I'm trying to do it using the htaccess through this code:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
The redirection works perfectly, however, the perl search engine (www.example.com/search/search.pl) on this website gives a forbidden error! (This search engine is available at www.xav.com)

Does anyone have any experience with this situation? How can a perl file become inaccessible by 301 redirection through the htaccess file? Someone please help!

Thanks-
ULTRON
ULTRON is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-09-2010, 03:57 PM Re: 301 redirect canonical forbidden error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
No idea how about giving us the REAL URIs so we can SEE what is happening???
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-09-2010, 04:08 PM Cool Re: 301 redirect canonical forbidden error
Junior Talker

Posts: 3
Name: John
Trades: 0
Here is the real website: http://bit.ly/qw8U4

The perl search engine is located at /search/search.pl

This .pl file is directly accessible through the browser now, but when I use 301 redirection through the htaccess file, a direct link to the .pl file gives a 403 error and the website search doesn't work.

Any ideas why?

Thanks

Quote:
Originally Posted by chrishirst View Post
No idea how about giving us the REAL URIs so we can SEE what is happening???
ULTRON is offline
Reply With Quote
View Public Profile
 
Old 02-09-2010, 04:17 PM Re: 301 redirect canonical forbidden error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
How about showing us a link that DOESN'T work??
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-10-2010, 12:28 AM Re: 301 redirect canonical forbidden error
Banned

Posts: 119
Trades: 0
I have the same problem. Hope I will get the solution from this forum.

Thanks

Last edited by chrishirst; 02-10-2010 at 04:55 PM..
Fusion BPO is offline
Reply With Quote
View Public Profile Visit Fusion BPO's homepage!
 
Old 02-11-2010, 01:03 PM Re: 301 redirect canonical forbidden error
Junior Talker

Posts: 3
Name: John
Trades: 0
This problem has been solved; I just reinstalled the search engine in the cgi-bin and it worked fine. I think it was a problem with read/write permissions.

Regards,

ULTRON

Quote:
Originally Posted by Fusion BPO View Post
I have the same problem. Hope I will get the solution from this forum.

Thanks
ULTRON is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 301 redirect canonical forbidden error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23192 seconds with 12 queries