Forum Moderators: open

Message Too Old, No Replies

.htaccess

How does Google treat these

         

AJames

3:44 pm on Oct 19, 2004 (gmt 0)

10+ Year Member



Does Google drown on using .htaccess to send a listing to another website?

Just a thought

Andy

Brett_Tabke

4:04 pm on Oct 19, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Depends upon what your are referring too. Study a bit more about htaccess first.

AJames

4:18 pm on Oct 19, 2004 (gmt 0)

10+ Year Member



Sorry that should have been Frown :-)

Will this stir up trouble?

Creating a page that is completely search engine friendly (something thats very hard when creating database driven sites).
Then using .htaccess file to redirect the optimised page to the real site index page.

Would Google read the optimised page at all or would it completely ignore it because of the .htaccess file.

Thank
Andy

Brett_Tabke

4:21 pm on Oct 19, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Depends upon what your are referring too. Study a bit more about htaccess first to know what you are asking.

Clarify the question more.

AJames

4:36 pm on Oct 19, 2004 (gmt 0)

10+ Year Member



Hi Bret

I'm not sure how else to put it.

If i use the following .htaccess code:
(Redirect index.html [domain.co.uk...]
on domain A where the index page is a snapshop of the original site but optimised for Google.
Would this index page be read by Google? and would it get banned for redirecting to the original site?

Regards
Andy

Brett_Tabke

4:40 pm on Oct 19, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



no it would not be read by google. It would be a redirect.

Unless you are talking pur cloaking.

AJames

4:44 pm on Oct 19, 2004 (gmt 0)

10+ Year Member



Thanks Bret

Would this work instead?

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.domain.co.uk/index.asp"
%>

Regards
Andy

BigDave

4:58 pm on Oct 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, .htacess is never read by google, it is read by Apache (your web server software) and it would send a 302 redirect to google.

In you second example you seem to be sending a 301 redirect to google which is a permanent redirect. this is almost the same thing as what the htaccess would cause.

But they would not work with the same server. For .htaccess to work, you need Apache. VBscript on the other hand, as far as I know, would require a microsoft server.

AJames

5:08 pm on Oct 19, 2004 (gmt 0)

10+ Year Member



Hi Big Dave.

Yes your right.
I am using ASP on a windows server.
Would Google read an optimised page with the redirect code on it?

Andy