473,486 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

any property that lets me change the browser address?

mikek12004
200 New Member
I have a site already constructed with tons of links targeting physical files, I want when the user types http://www.mypage.com/index.php?a=2&b=3 to load the actual page but in the browsers address bar to appear only http://www.mypage.com. I want this to be happening always regardless of what follows the domain name (not specificaly for a and b variables) Is there a javascript property I can put to my index page (all other pages are included in the index based on a spesific GET variable)
P.S. Looked .htaccess but for as far as I saw it's only taking a given pattern and if matched calling a specific page so it dont work in my case (at least that's what I think)
Dec 12 '08 #1
5 1262
Dormilich
8,658 Recognized Expert Moderator Expert
a quick and dirty solution would be using frames.

Dormilich ← doesn't like frames at all
Dec 12 '08 #2
mikek12004
200 New Member
Nah one of the problems here is that I have already constructed the site so I wish for the silution to be as painless as possible (plus I do not like frames either)
Dec 12 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
This won't be possible with JavaScript. You could use mod_rewrite if using Apache.
Dec 12 '08 #4
mikek12004
200 New Member
The thing is i do not want to map virtual URLs to physical files I simply want to hide them from the URL and simply show only www.mysite.com always in the address bar (while ofcourse loading the actual file) note also that the .htaccess examples I saw maps nonexisting urls to physical files but I want to do and the reverse (since I have tons of links targeting actual files) when the user types an actual link that page to load but in the address bar to show only the www.mysite.com
Any ideas?
Dec 12 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
The only thing I can think of is to redirect when the page loads to the home page, but taking the parameters to load the correct page. You could do that with JavaScript, but PHP would be more reliable.
Dec 13 '08 #6

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

Similar topics

5
2894
by: Secret Guy | last post by:
Because of my experience posting various places over the last couple of weeks: I'm expecting to be greated with hostility for asking about concepts instead of "practical" things, since that has...
4
2587
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
7
4017
by: sampsons | last post by:
Greetings, I am using Web.Mail.Mailmessage along with Web.Mail.SmtpMail.Send(MailMessage) method Now, this sends Email using the Default SMTP server of my REMOTE HOST. Sadly I have found...
2
12532
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
2
5277
by: Sai Kiran | last post by:
Hi! 1. I am using asp.net 2.0 for my application and was wondering is there a way we can hide address bar, menu bar, Links and Standard Buttons of the browser without opening a new window. ...
6
1381
by: JSheble | last post by:
Are there any reasons why I shouldn't or couldn't use a structure as a property in a class? Specifically since structures are value types and objects are reference types? I have a Shipping...
4
6268
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
5
2417
by: Hank Moss | last post by:
I've been able to get the <qelement and the CSS quotes property to work well together in English, but not in Russian or mixed Russian and English. I probably don't have a firm enough grasp of the...
2
1190
by: dwillis | last post by:
First let me tell you i'm using vb.net 05 so please do not post any other language types thanks. On to the story. I'm using a custom class thatl lets each property get/set data from an INI file and...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
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...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7305
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...
1
4863
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...
0
4559
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...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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 ...

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.