o.v.e.r.clockers.at News Forum Registration is free! Articles Shop Search      
o.v.e.r.clockers.at
min/max
Identity
Not registered yet?
min/max
New Posts
min/max
Latest News
min/max
Links

 
Author
  
Post A Reply
Smut

Editor
takeover & ether

Avatar
Registered: Feb 2003
Location: VIE
Posts: 11625

hallo,

ich habe hier ein etwas komplexeres cms und will NUR die startseite einer domain umleiten, die unterseiten und der ganze content soll weiterhin über die domain aufrufbar sein.

http://xyz.com -> soll auf http://xyz.at weiterleiten. http://xyz.com/abc muss aber weiterhin erreichbar sein.


wie gehe ich das am besten an? am liebsten wäre mir eine url-rewrite regel in der httpd.conf. als alternative hab ich mir überlegt eine html weiterleitung zu verwenden und die default page auf z.b. .html zu verändern. also dass beim aufruf der domain index.html mit der weiterleitung geladen wird.
nur springt dabei bei manchen browsern der cross-site schutz an.

tia für die hilfe!

edit:
ab und zu sollte man nicht zu kompliziert denken.

RewriteRule ^/index.php http://xyz.at

Old Post 16th February 2012 11:55
Report to moderator Reply w/Quote
kleinerChemiker

C2H5OH-Liebhaber

Avatar
Registered: Feb 2002
Location: Wien
Posts: 2894

Das ist aber eigentlich keine Umleitung. Zum Umleiten solltest eher einen 301 HTTP-Status schicken.


__________________
Signature Image

Warning: Invalid argument supplied for react() in ...synthesize.php on line 99 - Unable to disolve
"Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das nennen sie ihren Standpunkt." Albert Einstein
----------------------------

mein Blog

Old Post 16th February 2012 13:12
Report to moderator Reply w/Quote
Smut

Editor
takeover & ether

Avatar
Registered: Feb 2003
Location: VIE
Posts: 11625

CODE:
1: RewriteRule ^/index.php http://xyz.at [R=301,L]
copy source

so korrekt?

Old Post 16th February 2012 13:26
Report to moderator Reply w/Quote
kleinerChemiker

C2H5OH-Liebhaber

Avatar
Registered: Feb 2002
Location: Wien
Posts: 2894

bin da kein Profi, aber glaube, daß es stimmt.


__________________
Signature Image

Warning: Invalid argument supplied for react() in ...synthesize.php on line 99 - Unable to disolve
"Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das nennen sie ihren Standpunkt." Albert Einstein
----------------------------

mein Blog

Old Post 16th February 2012 13:29
Report to moderator Reply w/Quote
COLOSSUS

Newsposter
Dovahkiin

Avatar
Registered: Dec 2000
Location: Wien || Stmk
Posts: 9789

CODE:
1: Redirect permanent /index.php http://example.org/wheredoyouwanttogotoday
copy source


Vgl. http://httpd.apache.org/docs/curren...s.html#redirect


__________________
Signature Image
Free Software. Free Society. Better Lives. ‖ self.blog() ‖ Sturgeon's Law: 90% of everything is crap.

People said I should accept the world. Bullshit! I don't accept the world. - Richard M. Stallman

Old Post 16th February 2012 13:51
Report to moderator Reply w/Quote
userohnenamen

leider kein name

Avatar
Registered: Feb 2004
Location: -
Posts: 12508

quote:

Originally posted by COLOSSUS
CODE:
1: Redirect permanent /index.php [url]http://example.org/wheredoyouwanttogotoday[/url]
copy source
[/url]



mauhahahaha, colo geht mit nem ex-ms werbespruch hausieren
scnr

Old Post 16th February 2012 14:22
Report to moderator Reply w/Quote
All times are GMT +1 hour. The time now is 16:36.
  
Post A Reply
 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

< Contact Us - Forums - About o.v.e.r.clockers.at - Impressum - Werbung schalten? >

© all rights reserved by o.v.e.r.clockers.at 2000-2013
overclockers.at 4.4b based on vBulletin 2.2.5
Page generated in 0.123 seconds (SQL-time: 0.011 seconds, 56 queries)
sponsored by www.nessus.at