When you go to http://en.wikipedia.or g/wiki/j43i03j9f304j9f 3049j, it actually performs a search for "j43i03j9f304j9 f3049j". How is that achieved? It sort of redirects to the page whose name best matches the /blahblahblah. Does that make sense?
Wikipedia's tricks
Collapse
X
-
Tags: None
-
Originally posted by cheesecakerWhen you go to http://en.wikipedia.org/wiki/j43i03j9f304j9f3049j, it actually performs a search for "j43i03j9f304j9 f3049j". How is that achieved? It sort of redirects to the page whose name best matches the /blahblahblah. Does that make sense?
I really can't say for certain but it could be some sort of query string like processing. See if there is anything after the URL finishes (final /)and then load that into a SQL statement to query the database.
That's a guess. Why do you want to know? Do you need to do something similar?
Cheers
nathj -
Originally posted by cheesecakerWhen you go to http://en.wikipedia.or g/wiki/j43i03j9f304j9f 3049j, it actually performs a search for "j43i03j9f304j9 f3049j". How is that achieved? It sort of redirects to the page whose name best matches the /blahblahblah. Does that make sense?Comment
-
Ahh, okay. Basically what I want to do is what freedomain.co.n r does, except with my own domain. They give you a subdomain, such as mydomain.co.nr. Then when you go that url, it displays a frame that loads the site you point the freedomain to at the freedomain.co.n r control panel. Only downside is, you have to use their .co.nr subdomains. I want to do it with my own domain, since I'm hosting myself with a blocked port 80. I've gotten it to work with the index.html file. I host the actual domain on a free host, and on the index.html it just loads a single frame, sourced at ServerIP:8080. So if I go to mydomain.com, the frame loads index.html, where the frame is sourced at serverip:8080. But if I were to go to mydomain.com/subdirectory, I'd need the frame to be sourced at serverip:8080/subdirectory. It's a very confusing explanation, but that's what I need.Comment
-
Originally posted by cheesecakerAhh, okay. Basically what I want to do is what freedomain.co.n r does, except with my own domain. They give you a subdomain, such as mydomain.co.nr. Then when you go that url, it displays a frame that loads the site you point the freedomain to at the freedomain.co.n r control panel. Only downside is, you have to use their .co.nr subdomains. I want to do it with my own domain, since I'm hosting myself with a blocked port 80. I've gotten it to work with the index.html file. I host the actual domain on a free host, and on the index.html it just loads a single frame, sourced at ServerIP:8080. So if I go to mydomain.com, the frame loads index.html, where the frame is sourced at serverip:8080. But if I were to go to mydomain.com/subdirectory, I'd need the frame to be sourced at serverip:8080/subdirectory. It's a very confusing explanation, but that's what I need.
Some domain registration services (I know Yahoo does) allow you to set up a "webhop," which is pretty much exactly what you are asking for. Not all domain registrants will do this though, but you can find services like DynDNS which will do it as well.Comment
-
Originally posted by MotomaYeah, see, that's a problem. In order for the redirect to happen, you need to hit the page to begin with.
Some domain registration services (I know Yahoo does) allow you to set up a "webhop," which is pretty much exactly what you are asking for. Not all domain registrants will do this though, but you can find services like DynDNS which will do it as well.Comment
-
Originally posted by cheesecakerExactly, but I've gotten around that by hosting my proper .com domain on a free host, with no ads or frames or anything. Just regular hosting, with one index.html file. I'm hoping to figure out a setup where going to a subdirectory on this proper-hosted domain's index.html's frame to source to serverIP:8080/subdirectory.Comment
-
Originally posted by MotomaSo you are just looking for the HTML for an inner frame? I will forward this thread to the HTML forum then!Comment
-
Originally posted by cheesecakerNot necessarily html... there would probably have to be some sort of dynamic aspect, since I want the inner frame's source to automatically reflect the subdirectory that the URL is trying to access. Just to remind, mydomain.com/abc123 should show a page with a frame that automatically sources itself to ServerIP:8080/abc123.Comment
-
Originally posted by MotomaYou will need to have access to the apache configuration, or at least be able to run your own settings through a .htaccess file. If you can do the latter, take a look at mod_proxy.Comment
-
Originally posted by MotomaYou will need to have access to the apache configuration, or at least be able to run your own settings through a .htaccess file. If you can do the latter, take a look at mod_proxy.
Code:ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://<insert server IP>:8080/ ProxyPassReverse / http://<insert server IP>:8080/
Or could I for example do:
Code:ProxyPass /* http://<insert server IP>:8080/* ProxyPassReverse /* http://<insert server IP>:8080/*
Comment
-
Originally posted by cheesecakerWow, thanks! I've almost achieved the effect I wanted. Last thing, though. Right now, this is in my root html folder on the free host.
Code:ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://<insert server IP>:8080/ ProxyPassReverse / http://<insert server IP>:8080/
Or could I for example do:
Code:ProxyPass /* http://<insert server IP>:8080/* ProxyPassReverse /* http://<insert server IP>:8080/*
Code:ProxyRemote * http://youripaddy:8080
Comment
Comment