Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

.htacces subdomain to file

Name: z 2008-04-22 13:20

Hi /prog/,
I have a problem making a subdomain that points to a file, I know how to make it with folders, like lol.domain.org will be pointing to domain.org/lol but is it possible to make .htaccess point lol.domain.org to domain.org/index.php?page=lol ?
I promise i've tried multiple time but failed.

Name: Anonymous 2008-04-22 13:36

This is the wrong place to be asking. I suggest you read the manual.

http://httpd.apache.org/docs/1.3/howto/htaccess.html

Name: Anonymous 2008-04-22 13:38

>>1 HAVE YOU READ YOUR SICP TODAY ROFL LISP HASKELL PYTHON ONE WORD FORCED INDENTION OF THE CODE CHRISTOPHER LOLUL SUSSMAN SNAKE MY OTHER CAR IS SAME CUDDER AND WE HAVE BEEN TROLLED CONSTANTLY HAHAHA XARN PAUL GRAHAM ZOMG XKCD SUCKS HELLO PROG YOU HAVE LOST THE GAME HAVE YOU PAID YOUR BEET TOLL TODAY LMAO SEPPLES HASKELL NOMADS AMIRITE THREAD OVER BUT YOU CANT TUNA FISH ANIMU KAWAII SICPGIRL ABELSON ANTICUDDER BBCODE MASTERY THE GINGER FAGGOT QUOTES FAILED MEME DETECTED NO EXCEPTIONS

Name: Anonymous 2008-04-22 13:42

>>2
been there already..

Name: Anonymous 2008-04-22 13:43

RewriteCond %{HTTP_HOST} =lol.domain.org [NC]
RewriteRule .* /index.php?page=lol

Name: Anonymous 2008-04-22 13:48

>>5
DON'T HELP HIM!!!

Name: z 2008-04-22 13:50

>>5
well, that Is actually working but it makes my site look like CSS-less... It shouldn't be server-side problem because it's HQ linux dedicated server...

Name: Anonymous 2008-04-22 13:50

>>6
wat!

Name: Anonymous 2008-04-22 14:17

>>7
Ok, then when you have the URL http://lol.domain.org/SICPLOL, where should the SICPLOL go in the http://domain.org/index.php?page=lol URL.

Name: z 2008-04-22 14:23

it's more complicated...
somewhere in index.php i have switch case that picks up ?page parameter and loads other content files
it's like:
<? php pick what $page should i show ?>
<html>
<body>
<div container>
<div menu and stuff/>
<div page>
<? php include file from $page ?>
</div>
<div footter/>
</div>
</body>
</html>

so everything is all around one file index.php

Name: z 2008-04-22 14:24

i need subdomains for subpages

Name: Anonymous 2008-04-22 14:50

>>11
No you don't.

Name: Anonymous 2008-04-22 15:06

You seem like a very busy person, z.

Name: Anonymous 2008-04-22 15:13

<? php

Name: Anonymous 2008-04-22 15:16

Try using fucking ABSOLUTE URLs FOR THE CSS, THEN.

Fucking idiot. Please post the link of your website when you're done.

Name: Anonymous 2008-04-22 15:19

................................I$7?Z7?=~+?7ZI+=,...............................
............................,?$D=~~?~~~~~~~~~~~~~+77............................
.........................=?+~~~Z=~~~~~~~~~~~~~~~~~~~~+7.........................
.................. ,+??7~~~~~~~7=~~~~~~~~~~~~~~~~~~~~~~~7~......................
...............~7.=:~~~~~~~~~~~7~~~~~~~~~~~~~~~~~~~~~~~~~~7:....................
............I=..,:~~~~~~~~~~~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~:Z ..................
.........==..,.I..~~~~~~~~~~~~~~~~~~$=~~~~~~~~~~~~~~~~~~~~~~~7??+,..............
.......+~=?=,~.,....,~~~~~~~~~=~$=~~++~~~~7~~~~~~~~~~~++~~~~~$~~~$..............
.....~$+,...?.,.,.:.....:~~~=O~~7~~~+?~~~~~$~~~~~~~~~~~~7~~~~Z=~~II=............
...,=......7.,...,.....,~:~~~~~~==~~~.8.,:::$~~~~:,,,....$~~~7~~~~~I7...........
..........Z,:~~~~+~~~~=7~~~=Z~~~.$~~:.,I~=~::I.,..,,..,..,$II+~~~~~~~M..........
.........Z=~~~~~O=~~~=Z~~~~~~~~+:.=~~=,:7~~~~OZ=~:,,.....,,:,?~~~~~~~I..........
........O~~~~~?7~~~~=+~~~=~I~~I:,,I~~7,,:$~~~~7?==~~~~~~+~:,~?~~~:~~~=..........
......,+~~~~~?$I~~~~?$~~~~7D=Z~$,,,O=7,,::7~+=$+?+~~~~~~~+~~=$~~~~~~~=..........
......=~~~~:$.D~~~~+I:~~~~~+:.,,,,,,+=.:,,::=~+8IOO=~~~~~=?=~~Z~~~~=~~..........
......=~~=$.,.~~~~?+Z~~~~~$+Z,,,,,,:~~$,,,,,.I=I,.OZ~~~~~~???~:$~~~~~~..........
....,Z~=?~...I~~~+?+~~~~~I.+.,,,,,,,,Z7.,,,,,,I~~,,II~~~~~=+$$==:+~~~~..........
.....~~7.....Z~~~??I~~~~~,.8::,,:,,,,,$$,,:,,,.O$,,.,I~~~~~++?Z:Z7~~~~..........
....8I.......=~~???Z~~~~MMMDNZ~+?:,,,,,O,,,,=?.,ONMMNNNM7~~~+ZI?~:~~:=..........
....7.......=~~++??8~~~Z,=:.,ODMM?,:,,:,$:::,MMNIZZZZ,NN=~~~?8?=?Z=?~+..........
...O........$=~??+DO~~Z,,O~.,ZZZ8O::,,,,,,,:$,.,.ZZZZ:D,O=~~=$?~=O~$~I..........
............O=???878~~Z.,=+O$Z$Z$.,,,,,,,,,,,,O$+ZZ$$..:~7~~~?+~~~+O~$..........
............$~??O?IO~O:Z:,:OZZO+,,,,,,,,,,,,:.ZIZO7OZ,,::7+=~??~~~~==Z..........
............I+?O,~?O=.:?,,.D+~=:8,,,,,,,,,,,,~$:=~=Z,:,,,,=+~+=~~~$~~Z..........
............+?O.+~?$D::.,,:?Z~:ZN,,,,,,,,,,,,,ZI~~ZZ.,,,,,,+~+~~~~8~?Z..........
............+?..O+??O.,:?::,88Z+,,,,,,,,,,,,,,~I8N8$:,,,,,,,O==~~:7~IZ..........
............+8..$????I=,$:::::::,,,,,,,,,,,,,,,:::,::,,,,,,:.+~~~?+~$Z..........
............?...+???=?+I8::::::,,,,,,,,,,,,,,,,:::::::,,,,,:OZ~~~O?~$$..........
............M...:??+=???7,:::::,,,,,,,,,,,,,,,::::::::7,8$O+~~~~~??~$$..........
...............I~??+?=???7:::::,,,,,,:=,,,,,,,,,::,:?...?=?=~~~~$+?=$$..........
...............O+???Z=???Z?7I~.,,,,,I+=,,,,,,,,,~?,....O?O+~~~~~7??=7$..........
...............7+???Z~~?~Z?+Z.,?$~:Z7.,,,,,::$=,.....,,?I?~:~~=$+??+?$..........
..............:~????$~~~:Z??Z......+:~DII?+~~=........8+7=:~~~=I?????7..........
..............I~+????~~~,$??$......+~.O======$?.......I8~,~~~~D?????=7..........
..............Z=????+~=~:=+?$.,OI=I~7++=========IO$+:+Z~:~~~~?Z?????:Z..........
..............$+?????I~~~~??77,~ODZ$N$88$++~==~++?~+:O~:=~~~:?Z?????=N..........
..............I????+7O~~~~Z?7+.+..,..,....~?77?===:,,$:~~~~~Z?Z?????+M..........
..............+?+??+ZI:~~,$+Z,......,......~=+=:,,,,Z:=~~~~7I?O+?????D..........
..............~?????Z?=~~~=I=7,.,~+?I++:.,.OZOOZ+,,.+:~~~=ZO??O??????7..........
..............~+????I?8=~~:O?O,:...,..,....O==I$=O.8:~~~=7..??$+?????=..........
..............=????++?,=~~~=7O:~......77...:,,,,=OZ~~~~:?.,,O?7??????+..........
.............,=??????Z,O~~~~87I=.....?+7+,:$7,,ZI.~~~~~=,,,,8??7?????+..........
.............,++?????$,.~~~+,,,,Z,,.,Z?++,:,,77I~8~~~=~7,,,,O?+$?????+,.........
..............++???+O.,,Z~~?,,:,7$:..=8.,,,,:,O.,:~~~:~,,,,,O?+$?+???+~.........
..............++???8,,,:.I=:,,,,O77$O+.7,,,,,,+,O=~~~+:,,,,,7+?8??????+.........
..............++?+Z.,,,,,,=~:,,,7$7$O7Z$,,,,:,7,~~~~O:,,,,,,,O?O???????.........
..............I???+:,,,,,,I7:,,,8777OO7Z,,:,,:,8:~~I.,,,,,,,,.?I+??????.........
..............$???I,,,,,,,$,,,::$7$$7O$$Z7Z+,,::++=:,,,,,,,,,,7?+?????+.........
.............,8?+?I~:,,,,O:,,,NZ$$$$Z8$$77OZ:,,,,,O.,,,,,,,,,,.8+?????,.........
..............+?????~~=,O:,,,:7~~$Z$D8$ZI.?.=,,,,,,,+?,,,,,,,.8?+?????..........
...............7++++~,,..,,,,,,Z7.......+7Z.+,,,,,,,.7,,I,,,,Z+?++++++..........

Name: z 2008-04-22 15:30

>>15
won't do it to avoid 4chan fags
and in fact it did work, now i need to make absolute urls for all the images...... FGSFDS

Name: Anonymous 2008-04-22 15:42

>>17
That's your own fucking fault for trying to use subdomains in a stupid fashion. They're not supposed to work that way.

Name: Anonymous 2008-04-22 16:24

>>17
Yes, calling us fags is a good way to get help.

Name: Anonymous 2008-04-22 16:24

>>6
I only helped him dig his hole deeper.  That's worth an EXCEPTION.

Name: Anonymous 2008-04-22 16:26

>>20
NO EXCEPTIONS

Name: Anonymous 2008-04-22 20:35

>>20
Yeah, no kidding. Idiots who don't fully get the voodoo behind mod_rewrite messing with it will only get bruised. Badly.

Name: Anonymous 2010-11-15 7:46

Name: Sgt.Kabukiman 2012-05-22 23:15

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: Anonymous 2013-11-28 11:40

>─────▄████▀█▄
   >───▄█████████████████▄
   >─▄█████.▼.▼.▼.▼.▼.▼▼▼▼
   >▄███████▄.▲.▲▲▲▲▲▲▲▲
   >███████████████████▀▀
   YOU HAVE BEEN CAUGHT BY THE GATOR OF DOOM! REPOST THIS 5 TIMES OR GET GATORED!!!
>─────▄████▀█▄
   >───▄█████████████████▄
   >─▄█████.▼.▼.▼.▼.▼.▼▼▼▼
   >▄███████▄.▲.▲▲▲▲▲▲▲▲
   >███████████████████▀▀
   YOU HAVE BEEN CAUGHT BY THE GATOR OF DOOM! REPOST THIS 5 TIMES OR GET GATORED!!!
>─────▄████▀█▄
   >───▄█████████████████▄
   >─▄█████.▼.▼.▼.▼.▼.▼▼▼▼
   >▄███████▄.▲.▲▲▲▲▲▲▲▲
   >███████████████████▀▀
   YOU HAVE BEEN CAUGHT BY THE GATOR OF DOOM! REPOST THIS 5 TIMES OR GET GATORED!!!
>─────▄████▀█▄
   >───▄█████████████████▄
   >─▄█████.▼.▼.▼.▼.▼.▼▼▼▼
   >▄███████▄.▲.▲▲▲▲▲▲▲▲
   >███████████████████▀▀
   YOU HAVE BEEN CAUGHT BY THE GATOR OF DOOM! REPOST THIS 5 TIMES OR GET GATORED!!!
>─────▄████▀█▄
   >───▄█████████████████▄
   >─▄█████.▼.▼.▼.▼.▼.▼▼▼▼
   >▄███████▄.▲.▲▲▲▲▲▲▲▲
   >███████████████████▀▀
   YOU HAVE BEEN CAUGHT BY THE GATOR OF DOOM! REPOST THIS 5 TIMES OR GET GATORED!!!
>─────▄████▀█▄
   >───▄█████████████████▄
   >─▄█████.▼.▼.▼.▼.▼.▼▼▼▼
   >▄███████▄.▲.▲▲▲▲▲▲▲▲
   >███████████████████▀▀
   YOU HAVE BEEN CAUGHT BY THE GATOR OF DOOM! REPOST THIS 5 TIMES OR GET GATORED!!!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List