Forum Moderators: phranque

Message Too Old, No Replies

Some people need the "http://" part to access my site!

         

virtuals

8:21 pm on Feb 20, 2006 (gmt 0)

10+ Year Member



Sounds wired but it is true!

From with ISPs when people put this in their address bar and press enter or go, nothing happens.

Mydomain.com

No error message; no page loading … nothing! It just freezes. In this case they can still access other sites with out typing the [www....] Part. I.e. they can access yahoo by just typing yahoo.com in address bar and pressing go.

In this case they can only access my site by adding the http part. like this:

http://www.mydomain.com

I couldn’t believe it my self until I tried accessing my newly reached site from a coffee net.

I have this in my .htaccess file. Am I missing something there?


RewriteEngine On

RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.*)$ index.php/$1 [L]

RewriteCond %{REQUEST_URI}\\/%{HTTP_HOST}/www. ^/+(.+/)?[^.]*[^/]\\(/)([^w][^w][^w][^.].*/(www\.)¦.*)$ [OR,NC]
RewriteCond %{HTTP_HOST}/www. ^(/)?(/)?([^w][^w][^w][^.].*/(www\.))$ [NC]
RewriteRule ^ http://%4%{HTTP_HOST}%{REQUEST_URI}%2 [L,R=301]

DirectoryIndex index.php index.shtml index.html index.htm


[I'm trying to remove index.php from my urls, also forcing non www requests to www one and adding trailing slash to all my urls]

Thank you

[edited by: jdMorgan at 12:36 am (utc) on Feb. 21, 2006]
[edit reason] De-linked [/edit]

virtuals

11:41 pm on Mar 27, 2006 (gmt 0)

10+ Year Member



>Now since I made "quite a few errors in my syntax," it's probably best not to trust my code. But you might try:

Don't take it wrong way Jim, that was not a quote of mine, it was what they said.

------------

And I did try your final code, but unfortunately the same issue...

http://example.com/a/b

Redirects you to:

http://www.example.com//a/b//b

I'm stuck and don't know what to do :(

jdMorgan

12:18 am on Mar 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It works fine on my server...

Jim

virtuals

10:28 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



Are there any other aproches/methods I can use?

Thank you

virtuals

6:11 pm on Mar 30, 2006 (gmt 0)

10+ Year Member



Any advice Jim?

jdMorgan

6:27 pm on Mar 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See your stickymail.

Jim

extras

3:36 pm on Mar 31, 2006 (gmt 0)

10+ Year Member



Sorry, I was a bit busy and didn't notice your mail and this thread.
I'm reading it, now.

......

It it resolved?

If not, I think it's a lot quicker to fix it with the real domain name
and more details about the server setup, or better server access.
(I know you can't post the domain here, though.)

Strange things can happen FrontPage extension, other RewriteRule in server conf, or other modules.
And it's often pure waste of time to speculate with very limited information.

This 36 message thread spans 2 pages: 36