This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-27 16:01:03

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

/etc/hosts and htaccess

I read the thread about fake domains, and I had an idea that I could make a page to redirect to a Scratch user page.

Basically,
http://server/user >> http://server/user.php?user=user >> http://scratch.mit.edu/users/user

Anyone know how to do this?


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#2 2012-10-29 13:17:34

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: /etc/hosts and htaccess

technoboy10 wrote:

I read the thread about fake domains, and I had an idea that I could make a page to redirect to a Scratch user page.

Basically,
http://server/user >> http://server/user.php?user=user >> http://scratch.mit.edu/users/user

Anyone know how to do this?

Simple.
I'm going to make this small tutorial using my program (in my siggy, if you want it)
First, open it. You will be prompted to type in the IP. I belive this should work with URLs, so this is a first attempt.

Type in http://scratch.mit.edu/users/

Then you will be prompted to type in your custom domain name.

Type in somthing along the lines of scratchuser.com/

Now, you should be able to only need to type in scratchuser/username to access a user's profile!

WAIT. It doesn't work.....

Well, I made the scratch.mit.edu shorter by finding the IP of scratch.mit.edu
It's 18.85.28.105 if you wanted to know.


I'm back.
Maybe.

Offline

 

#3 2012-10-29 21:42:32

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: /etc/hosts and htaccess

Like this:
/etc/hosts

Code:

# your other stuff here
123.456.789 server

.htaccess

Code:

# other stuff here
RewriteEngine On
RewriteRule ^users/(.*)$ /user.php?user=$1

http://i.imgur.com/BAEgGDL.png

Offline

 

Board footer