HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old January 17th, 2007, 12:16 PM
irish_in_canada irish_in_canada is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 12 irish_in_canada User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 16 m 32 sec
Reputation Power: 0
301 redirects using .htaccess

I need to do a 301 redirect and am having a problem that I can't seem to solve.

The syntax is definately correct because my technician uploaded the file and it worked for him.

I made the file in notepad for windows, and have tried saving it in each of the four txt formats it offers (ansi, unicode, unicode big endian, and utf).

I use my FTP program to upload my text file, and then rename the file to .htaccess. (I have tried BOTH the binary and the ascii upload options.)

When I do this I get an INTERNAL SERVER ERROR. But as I said ... when HE uploads it from his linux machine it works fine.

I can create other .htaccess files just fine (for example password protect a directory.)

Any ideas?

Reply With Quote
  #2  
Old January 17th, 2007, 01:16 PM
ClickyB's Avatar
ClickyB ClickyB is offline
Cool bra. Go with Christ!
Click here for more information. Click here for more information
 
Join Date: Mar 2004
Location: Gloucester (South West UK).
Posts: 5,029 ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Months 4 Weeks 11 h 59 m 36 sec
Reputation Power: 213
Hi Irish,

I have just one idea...

Your issue may be that you can't rename a file to an existing name - and you can't see .htaccess files on your server because of your FTP set-up... (it's quite common).

When you connect to your server via FTP, can you see the .htaccess file?

If you can't, you probably need to input "-la" in order to make them visible... (look at the help for your FTP software & search for "hidden files").

If it's not this - sorry for wasting your time
__________________
ClickyB
"The quality of the visitor is more important than the volume".. Egol 22nd Feb 2008
New to SEO / SeoChat? Start : Here
Forum Rules & Posting Guidelines
Canonicalisation Solutions

Reply With Quote
  #3  
Old January 17th, 2007, 01:20 PM
dzine's Avatar
dzine dzine is online now
Vergruizer: Vot tebe khuy
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2005
Location: in a life preserver @ seorefugee
Posts: 2,508 dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 21 h 34 m 52 sec
Reputation Power: 145
Maybe (?) the trouble lies not withing the uploading but rather in the 301 itself. You sure it is absolutely spot on?

Have you tried the alternatives like maybe a 301 header in the redirecting file, as explaned on the webconfs how-to-redirect page?
__________________
Oooh, my 8000th ...Love my host... New quiz --->

Reply With Quote
  #4  
Old January 18th, 2007, 11:16 AM
irish_in_canada irish_in_canada is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 12 irish_in_canada User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 16 m 32 sec
Reputation Power: 0
I can see the .htaccess file using my FTP program.

Whether I upload it named "correctly" or whether I rename it once it has been uploaded I have the same issue.

When My tech uploads the file it works fine for him. He can't figure what's different.

One other suggestion someone has made is to try making the file using a different program to make it. (other than notepad)

Reply With Quote
  #5  
Old January 18th, 2007, 11:27 AM
dzine's Avatar
dzine dzine is online now
Vergruizer: Vot tebe khuy
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2005
Location: in a life preserver @ seorefugee
Posts: 2,508 dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 21 h 34 m 52 sec
Reputation Power: 145
Hmmm, I've never had any problems with that. But then again, there's a first for everything

You can test that by uploading and executing a PHP script that writes an .htaccess file dynamically - Linux-style - to your domain's "root" or a subdir. Using "\n" etc for line breaks.

But again - that sounds like a long shot....

This is interesting tho. Would you mind posting the .htaccess in question, and maybe the url?

Reply With Quote
  #6  
Old January 18th, 2007, 11:54 AM
fathom's Avatar
fathom fathom is offline
rod@spheri.ca
SEO Chat God 14th Plane (11500 - 11999 posts)
 
Join Date: Mar 2003
Posts: 11,977 fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level)fathom User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 4 Months 2 Weeks 3 Days 7 h 11 m 31 sec
Reputation Power: 355
Send a message via MSN to fathom Send a message via Skype to fathom
Quote:
Originally Posted by irish_in_canada
I need to do a 301 redirect and am having a problem that I can't seem to solve.

The syntax is definately correct because my technician uploaded the file and it worked for him.

I made the file in notepad for windows, and have tried saving it in each of the four txt formats it offers (ansi, unicode, unicode big endian, and utf).

I use my FTP program to upload my text file, and then rename the file to .htaccess. (I have tried BOTH the binary and the ascii upload options.)

When I do this I get an INTERNAL SERVER ERROR. But as I said ... when HE uploads it from his linux machine it works fine.

I can create other .htaccess files just fine (for example password protect a directory.)

Any ideas?


Assuming you copy & pasted the code into the text file you may have a malformed character that isn't being converted properly.

Best to avoid using Notepad for .htaccess scripting - try TextPad

Also note: "IF" you are attempting to use a .htaccess on a windows server... windows does not support .htaccess.

Reply With Quote
  #7  
Old February 3rd, 2007, 02:51 AM
guido61 guido61 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: Italy
Posts: 45 guido61 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 53 m 50 sec
Reputation Power: 4
Quote:
Originally Posted by irish_in_canada
I need to do a 301 redirect and am having a problem that I can't seem to solve.

The syntax is definately correct because my technician uploaded the file and it worked for him.

I made the file in notepad for windows, and have tried saving it in each of the four txt formats it offers (ansi, unicode, unicode big endian, and utf).


Any ideas?


Use a different editor. Notepad is notorius to cause problems.
Even the internal editor of total commader is better, but usually
I use Context www(dot)context(dot)cx

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > 301 redirects using .htaccess


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek