473,749 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wikipedia's tricks

66 New Member
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?
Sep 30 '07 #1
11 2022
nathj
938 Recognized Expert Contributor
When 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?
Hi,

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
Oct 2 '07 #2
Motoma
3,237 Recognized Expert Specialist
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?
The way this is done is through Apache's mod_rewrite module. This allows URL requests to be rewritten on the fly, as they are received. Behind the scenes there is likely a file called search.php, and http://en.wikipedia.or g/wiki/j43i03j9f304j9f 3049j gets rewritten as http://en.wikipedia.or g/search.php?q=j4 3i03j9f304j9f30 49j
Oct 2 '07 #3
cheesecaker
66 New Member
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.
Oct 4 '07 #4
Motoma
3,237 Recognized Expert Specialist
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.
Yeah, 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.
Oct 4 '07 #5
cheesecaker
66 New Member
Yeah, 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.
Exactly, 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.
Oct 4 '07 #6
Motoma
3,237 Recognized Expert Specialist
Exactly, 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.
So you are just looking for the HTML for an inner frame? I will forward this thread to the HTML forum then!
Oct 5 '07 #7
cheesecaker
66 New Member
So you are just looking for the HTML for an inner frame? I will forward this thread to the HTML forum then!
Not 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.
Oct 5 '07 #8
Motoma
3,237 Recognized Expert Specialist
Not 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.
You 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.
Oct 5 '07 #9
cheesecaker
66 New Member
You 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.
I do run my own server, so I suppose I'll look through that.
Oct 6 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3919
by: Claudio Grondi | last post by:
Is there an already available script/tool able to extract records and generate proper HTML code out of the data stored in the Wikipedia SQL data base? e.g. converting all occurences of ] to <a href=xxx>yyy</a> etc. Or even better a script/tool able to generate and write to the disk all the HTML files
24
2377
by: Luis M. González | last post by:
For those interested in the simplest, easiest and most pythonic web framework out there, there's a new page in Wikipedia: http://en.wikipedia.org/wiki/Karrigell
9
4963
by: AES | last post by:
I fairly often make PDF copies of web pages or sites by copying the web page link from the web page itself and pasting it into the Acrobat 7.0 Standard "Create PDF From Web Page" command. (Not trying to steal material; usually just want to make a temporary copy to read offline, e.g. on a plane flight.) This almost always works remarkably well, but when I tried it recently with a Wikipedia article
6
2198
by: Cain | last post by:
How would I get this Wikipedia XML: http://en.wikipedia.org/wiki/Special:Export/Alastair_Ralphs into a PHP variable (without copy and pasting it manually)? Thanks, Cain.
7
1417
by: Pitaridis Aristotelis | last post by:
There is a free encyclopedia called wikipedia (http://wikimediafoundation.org/). Does anyone knows how to use it in order to get various articles for diplaying them in my application?
1
1864
by: soeren.auer | last post by:
Hi all, we thought it could be interesting to experiment with equipping Wikipedia with some AJAX features. Result is a user interface for Wikipedia, which is largely based on AJAX, thus enabling previews of images or referenced articles without reloading the current Wikipedia page. Its called Pediax and accessible at: http://en.pediax.org
0
1714
by: e.expelliarmus | last post by:
check this out buddies. kool website for: * hacking and anti hacking tricks * anti hackng tricks. * registry tweaks * orkut tricks * small virus * computer tricks and loads of different tricks... www.realm-of-tricks.blogspot.com www.registrydecoded.blogspot.com
1
3893
by: JosAH | last post by:
Greetings, Introduction This week's tip describes a few old tricks that are almost forgotten by most people around here. Sometimes there's no need for these tricks anymore because processors nowadays are so fast and memory comes in abundance. But still, if we implement an algorithm that is better, or more efficient, than another one, those faster processors run the first algorithm faster than the other one. If an algorithm takes less...
2
2626
by: John Nagle | last post by:
For some reason, Python's parser for "robots.txt" files doesn't like Wikipedia's "robots.txt" file: False The Wikipedia robots.txt file passes robots.txt validation, and it doesn't disallow unknown browsers. But the Python parser doesn't see it that way. No matter what user agent or URL is specified; for that robots.txt file, the only answer is "False". It's failing in Python 2.4 on Windows and 2.5 on Fedora Core.
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.