What is a "Foreword" to a blog?
redirect all to index.html
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > redirect all to index.html 10 February 2005 18:13:32

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

redirect all to index.html

Preston Podaril 10 February 2005 18:13:32
 I want to redirect all requests to a particular domain to index.html
such as all requests to www.digitalpartners­.com to
www.digitalpartners­.com/index.html

I had setup a rewrite that worked, but broke all images on the page
because it was rewriting anything that wasn't index.html to that. Now I
have a redirect, but I am not sure why it won't work, it seems obvious
to me, but I guess not.

Redirect !/index.html http://www.digitalp­artners.com/pages/in­dex.html

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Preston Podaril 10 February 2005 18:01:12 permanent link ]
 Sorry it is to early in the morning. My redirect is actually this:

Redirect !/index.html http://www.digitalp­artners.com/index.ht­ml


Preston Podaril wrote:> I want to redirect all requests to a particular domain to index.html > such as all requests to www.digitalpartners­.com to > www.digitalpartners­.com/index.html>
I had setup a rewrite that worked, but broke all images on the page > because it was rewriting anything that wasn't index.html to that. Now I > have a redirect, but I am not sure why it won't work, it seems obvious > to me, but I guess not.>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>
!DSPAM:420b76b89673­1309263494!>

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Jeremy Hilton 10 February 2005 18:01:54 permanent link ]
 On 2/10/05 9:58 AM, "Preston Podaril" <ppod@ispi.net> wrote:
I want to redirect all requests to a particular domain to index.html> such as all requests to www.digitalpartners­.com to> www.digitalpartners­.com/index.html>
I had setup a rewrite that worked, but broke all images on the page> because it was rewriting anything that wasn't index.html to that. Now I> have a redirect, but I am not sure why it won't work, it seems obvious> to me, but I guess not.>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>

This might work.

RedirectMatch /index.html /pages/index.html

Jeremy


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Jeremy Hilton 10 February 2005 18:04:53 permanent link ]
 On 2/10/05 10:01 AM, "Preston Podaril" <ppod@ispi.net> wrote:
Sorry it is to early in the morning. My redirect is actually this:>
Preston Podaril wrote:>> I want to redirect all requests to a particular domain to index.html>> such as all requests to www.digitalpartners­.com to>> www.digitalpartners­.com/index.html>>
I had setup a rewrite that worked, but broke all images on the page>> because it was rewriting anything that wasn't index.html to that. Now I>> have a redirect, but I am not sure why it won't work, it seems obvious>> to me, but I guess not.>>
-------------------­--------------------­--------------------­---------->> The official User-To-User support forum of the Apache HTTP Server Project.>> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.>> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org>> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg>> For additional commands, e-mail: users-help@httpd.ap­ache.org>>
!DSPAM:420b76b89673­1309263494!>>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>

Why arewanting to redirect / to /index.html?

If your DirectoryIndex is index.html, then anyone coming to / will be served
index.html.

Jeremy


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
G Lams 10 February 2005 18:07:55 permanent link ]
 Strange. why do you want to do it?

Anyway, supposing that the images are in the "images" folder, something
like that could work

RewriteEngine on
RewriteLog /var/log/apache2/di­gitalpartner-rewrite­.log
RewriteLogLevel 2
RewriteRule ^/images/(.*) /images/$1 [L,PT]
RewriteRule ^/(.*) http://www.digitalp­artners.com/index.ht­ml [L,P]

gaГ«l

Preston Podaril <ppod@ispi.net> wrote on 10/02/2005 16.01.12:
Sorry it is to early in the morning. My redirect is actually this:>
Preston Podaril wrote:> > I want to redirect all requests to a particular domain to index.html > > such as all requests to www.digitalpartners­.com to > > www.digitalpartners­.com/index.html> >
I had setup a rewrite that worked, but broke all images on the page > > because it was rewriting anything that wasn't index.html to that. Now
I > > have a redirect, but I am not sure why it won't work, it seems obvious
to me, but I guess not.> >
-------------------­--------------------­--------------------­----------> > The official User-To-User support forum of the Apache HTTP Server
Project.> > See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> > To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> > " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> > For additional commands, e-mail: users-help@httpd.ap­ache.org> >
!DSPAM:420b76b89673­1309263494!> >
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server
Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Preston Podaril 10 February 2005 18:07:56 permanent link ]
 I want to redirect EVERYTHING to www.digitalpartners­.com domain to
index.html, I care not about redirecting / to index.html, that is a
given with DirectoryIndex like you say. I want
http://www.digitalp­artners.com/boooga_b­ooggggga_boooogaaaaa­a or whatever
the hell someone types in there to load (or redirect to) the
http://www.digitalp­artners.com/index.ht­ml page, since we are wanting
just a static page now with a logo up, and don't want people with
bookmarked links to be able to get to content still.

make sense?

Jeremy Hilton wrote:> On 2/10/05 10:01 AM, "Preston Podaril" <ppod@ispi.net> wrote:>
Sorry it is to early in the morning. My redirect is actually this:>>
Preston Podaril wrote:>>
I want to redirect all requests to a particular domain to index.html>>>such as all requests to www.digitalpartners­.com to>>>www.digitalpar­tners.com/index.html­>>>
I had setup a rewrite that worked, but broke all images on the page>>>because it was rewriting anything that wasn't index.html to that. Now I>>>have a redirect, but I am not sure why it won't work, it seems obvious>>>to me, but I guess not.>>>
----------------­--------------------­--------------------­------------->>>The official User-To-User support forum of the Apache HTTP Server Project.>>>See <URL:http://httpd.a­pache.org/userslist.­html> for more info.>>>To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org>>> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg>>>For additional commands, e-mail: users-help@httpd.ap­ache.org>>>
-----------------­--------------------­--------------------­------------>>The official User-To-User support forum of the Apache HTTP Server Project.>>See <URL:http://httpd.a­pache.org/userslist.­html> for more info.>>To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org>> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg>>For additional commands, e-mail: users-help@httpd.ap­ache.org>>
Why arewanting to redirect / to /index.html?>
If your DirectoryIndex is index.html, then anyone coming to / will be served> index.html.>
Jeremy>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>
!DSPAM:420b780d2722­72113314696!>

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Preston Podaril 10 February 2005 18:13:02 permanent link ]
 yeah we need to pages up there still, we aren't wanting to completely
wipe them out, but simply load just the logo as it does right now for
everything to that domain.

oxfordmusic.net wrote:>> I want to redirect EVERYTHING to www.digitalpartners­.com domain to >> index.html, I care not about redirecting / to index.html, that is a >> given with DirectoryIndex like you say. I want >> http://www.digitalp­artners.com/boooga_b­ooggggga_boooogaaaaa­a or >> whatever the hell someone types in there to load (or redirect to) the >> http://www.digitalp­artners.com/index.ht­ml page, since we are wanting >> just a static page now with a logo up, and don't want people with >> bookmarked links to be able to get to content still.>>
make sense?>>
do you need all the old pages up on the server still? if not, why you > just delete them all (or copy them to your local machine for > backup/archive purpose) and set your error page to be your index page?>
andy>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>
!DSPAM:420b79ac1796­1933413526!>

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Oxfordmusic.Net 10 February 2005 18:13:32 permanent link ]
 
I want to redirect EVERYTHING to www.digitalpartners­.com domain to > index.html, I care not about redirecting / to index.html, that is a given > with DirectoryIndex like you say. I want > http://www.digitalp­artners.com/boooga_b­ooggggga_boooogaaaaa­a or whatever > the hell someone types in there to load (or redirect to) the > http://www.digitalp­artners.com/index.ht­ml page, since we are wanting just > a static page now with a logo up, and don't want people with bookmarked > links to be able to get to content still.>
make sense?>

do you need all the old pages up on the server still? if not, why you just
delete them all (or copy them to your local machine for backup/archive
purpose) and set your error page to be your index page?

andy



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Boyle Owen 10 February 2005 18:14:36 permanent link ]
 
-----Original Message-----> From: Preston Podaril [mailto:p­pod@ispi.net]> Sent: Donnerstag, 10. Februar 2005 15:59> To: users@httpd.apache.­org> Subject: [users@httpd] redirect all to index.html>
I want to redirect all requests to a particular domain to index.html > such as all requests to www.digitalpartners­.com to > www.digitalpartners­.com/index.html>
I had setup a rewrite that worked, but broke all images on the page > because it was rewriting anything that wasn't index.html to > that. Now I > have a redirect, but I am not sure why it won't work, it > seems obvious > to me, but I guess not.>

This is the same as "rewriting anything that isn't index.html" - or
would be, if you could use regexps with Redirect. At the very least you
need to use RedirectMatch.... eg,

RedirectMatch !/index.html
http://www.digitalp­artners.com/pages/in­dex.html

but this still won't work since pic.gif is NOT index.html so will be
redirected too (apache can't magically know you want only to apply it to
html files).

Probably better is mod_rewrite, which allows conditional rewriting, eg

RewriteCond %{REQUEST_URI} .*\.html$
RewriteCond %{REQUEST_URI} !/index.html
RewriteRule .*/index.html

This says:

if (request URI) ends in html AND
request URI is NOT index.html THEN
rewrite everything to index.html

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.

-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP > Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>
Diese E-mail ist eine private und persГ¶nliche Kommunikation. Sie hat
keinen Bezug zur BГ¶rsen- bzw. GeschГ¤ftstГ¤tigkei­t der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le prГ©sent e-mail est
un message privГ© et personnel, sans rapport avec l'activitГ© boursiГЁre du
Groupe SWX.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company.



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > redirect all to index.html 10 February 2005 18:13:32

see also:
[magnolia-user] checkboxSwitch value…
Does OpenCMS cannot connect to the…
Re: Re: CAP
пройди тесты:
see also:
The story behind stupid…
Do you know my small bro is a star…
My brother taught me this prayer

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .