[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - mod_rewrite naar andere port
Pagina 1 van 1

mod_rewrite naar andere port

BerichtGeplaatst: 20 mei 2007 03:24
door TommyGun
Een vraagje over mod_rewrite en permanent redirecten naar een andere port. Ik wil namelijk mijndomein.com ''achter de schermen'' laten redirecten naar mijndomein.com:1337. Ik wil namelijk niet dat gebruikers :1337 dienen in te typen om op mijn site te komen. (Zowel port 80 als 1337 staan open.)

Nu had ik al 't een en ander geprobeerd maar zonder resultaat helaas. Mijn default httpd config file is /etc/httpd/conf/httpd.conf dus daar zet ik dit in. Enkele voorbeeldjes;

RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*) http://www.example.com:1337/$1 [NC,L]

RewriteCond %{SERVER_PORT} ^80$ [NC]
RewriteRule (.*) http://www.example.com:1337/$1 [P,L]

Nu las ik dat je dit zichtbaar kunt laten gebeuren met [R,L] ipv [P,L] maar er gebeurde dus niks als ik naar mijndomein.com ging. Ik heb Google al plat gezocht maar ik kom er niet in uit. Iemand misschien suggesties?

Bedankt

Re: mod_rewrite naar andere port

BerichtGeplaatst: 20 mei 2007 07:15
door libia
bij die tweede ben je volgensmij de ^/ vergeten Wink

Re: mod_rewrite naar andere port

BerichtGeplaatst: 20 mei 2007 16:03
door TommyGun
Ah stom idd, dus dit zou moeten werken?

RewriteCond %{SERVER_PORT} ^80$ [NC]
RewriteRule ^/(.*) http://www.example.com:1337/$1 [P,L]

Bedankt

Re: mod_rewrite naar andere port

BerichtGeplaatst: 20 mei 2007 16:06
door libia
waarschijnlijk wel ja Wink

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 14:33
door TommyGun
Hm ik snap het niet, erg gebeurd helemaal niks. maakt niet uit of ik deze in de .htaccess of in de httpd conf zet.

Enig idee wat ik fout kan doen?

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 14:48
door libia

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 15:30
door TommyGun

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 16:09
door Derk

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 16:15
door KillerSponge
(offtopic tussendoor: 1337, leuke poortkeuze Razz)

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 17:08
door Derk

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 19:18
door TommyGun

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 19:24
door Derk

Re: mod_rewrite naar andere port

BerichtGeplaatst: 21 mei 2007 19:29
door TommyGun

Re: mod_rewrite naar andere port

BerichtGeplaatst: 22 mei 2007 17:08
door TommyGun
Bump, misschien libia? Oops

Re: mod_rewrite naar andere port

BerichtGeplaatst: 22 mei 2007 17:19
door KillerSponge

Re: mod_rewrite naar andere port

BerichtGeplaatst: 22 mei 2007 18:16
door libia
als dat van killer niet werkt.. denk ik eigenlijk dat het niet mogelijk is Wink

Re: mod_rewrite naar andere port

BerichtGeplaatst: 22 mei 2007 19:43
door TommyGun

Re: mod_rewrite naar andere port

BerichtGeplaatst: 22 mei 2007 21:09
door Derk
kan je
RewriteCond %{REQUEST_FILENAME} ^(.*)$ [NC]
niet gewoon helemaal weg laten?

Re: mod_rewrite naar andere port

BerichtGeplaatst: 23 mei 2007 01:40
door TommyGun
Eens getest, maar ik vind het vreemd.

Alle images / files geven een 404, terwijl de URL's gewoon nog kloppen. Maar ze worden gewoon niet gevonden.

Iemand nog ideeen? Thx

Edit; bedenkt me nu pas, misschien moet ik ipv;

http://www.mijndomein.com:1337/

Dit doen;

http://www.mijndomein.com:1337

Dus zonder die / op het einde, misschien dat het daarom fout gaat? Anyway, morgen wel eens testen, al te laat nu.