Forum Moderators: open

Message Too Old, No Replies

Redirect from folder address

         

waynemac

4:41 am on Sep 15, 2004 (gmt 0)

10+ Year Member



Gidday, Im setting up a mobile site here in Japan and want to set up a redirect from a folder address (mysite.com/mobile) to mysite.com/mobile.index.html . I tried a Redirect 301 but just got a long index.htmlindex.html entry in the address bar.

The reason? Its cleaner for advertising, easier to tell people, easier for users` to input.

What should I do?

Thanx in advance, Wayne

bill

5:48 am on Sep 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld waynemac.

Are you trying to redirect keitai browsers on a mobile site? You'll have to do that server-side. How did you set up the 301 Redirect? It sounds like you may have done something inadvertent if you're getting the result you mentioned.

waynemac

6:11 am on Sep 15, 2004 (gmt 0)

10+ Year Member



Bill, thanx for the warm welcome.

Yes, Im trying to direct keitai browsers example.net/mobile to the mobile/index.html file.

The Vodafone redirects automatically. The Docomo phone shows a 301 then gets to the site. Message in Japanese saying site moved.

I do get a redirect but want to loose the Docomo 301 site moved message.

Server-side? Thru Control Panel? I tried a redirect thru both CP and htaccess but get long lines of index.htmlindex.html....

htaccess and CP redirects work for other web browser redirects OK.

Anymore ideas?

Regards, Wayne in Fukuoka

[edited by: tedster at 9:22 am (utc) on Sep. 15, 2004]
[edit reason] use example.com [/edit]

bill

7:40 am on Sep 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One way you can skip the error message on the DoCoMo phones that I know of is to do browser sniffing on the server side. The down-side to this is that it's a pain to do maintenance whenever new phones and browsers are released.

How exactly are you redirecting visitors now?

What have you tried in .htaccess?

waynemac

9:21 am on Sep 15, 2004 (gmt 0)

10+ Year Member



Gidday, I tried doing it thru htaccess but when I run that in the address bar of my browser I get mysite.com/index.htmlindex.htmlindex. htmlindex.htmlindex.htmlindex.htmlindex.htmlindex.htmlindex. htmlindex.htmlindex.htmlindex.htmlindex.html
and maybe a few more.

Why would it be repeating the index.html call?

Wayne

[edited by: BlobFisk at 1:06 pm (utc) on Sep. 15, 2004]
[edit reason] Spaces added to remove sidescroll [/edit]

bill

1:03 pm on Sep 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'd need to know what command you used in the .htaccess to redirect the page to figure that out.

waynemac

2:44 pm on Sep 15, 2004 (gmt 0)

10+ Year Member



Bill, I was using...
Redirect 301 /mobile http:example.net/mobile/index.html

Does this show why I would have got that index.htmlindex.htmlindex.htmlindex.htmlindex.htmlindex.htmlindex.htmlindex.htmlindex.htmlindex.htmlindex.html mess?

Thanx again & Regards, Wayne

[edited by: tedster at 5:32 pm (utc) on Sep. 15, 2004]

dcrombie

3:58 pm on Sep 15, 2004 (gmt 0)



You're sending your visitors into a recursive loop.
The pattern "mobile/" triggers the request but also appears in the request after the redirect.

I don't recognise the syntax your using but aybe you need something like:

Redirect 301 /mobile$ http:example.net/mobile/index.html

or:

Redirect 301 /mobile/?$ http:example.net/mobile/index.html

[edited by: tedster at 5:33 pm (utc) on Sep. 15, 2004]
[edit reason] please, use example.net [/edit]

waynemac

12:40 am on Sep 16, 2004 (gmt 0)

10+ Year Member



Bill, thanx for that.

The Redirect 301 /mobile/?$ http:example.net/mobile/index.html one is the go.

Thanks a lot.

Regards, Wayne