473,480 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to show shortened url in the address bar

1 New Member
Hi...

Would someone please be kind enough to help me with php code to insert into my webpage?

I have a site that shortens a url. It uses an SQL DB. (not important for this, I believe)

I need the php code to keep the shortened url in the address bar after redirecting to the landing page. The way it works now is that it shortens the url but the original url shows in the address bar after reaching the landing page.

Would someone please help me out here?

I hope I am allowed to put the url here? I am not promoting the site. I can not even use it the way it is now.

Moderators, delete this if it is not ok to be here. Thank you.

URL: <DOMAIN REMOVED> - Moderator

If you would like, I will give you a free webhosting account for helping me get this the way I want it.
(pretty fast server) cPanel, Fantasico, RV Skin, TV Sitebuilder... the works.

Thank you,
John

<EMAIL REMOVED> - Moderator
Apr 3 '08 #1
2 1614
TheServant
1,168 Recognized Expert Top Contributor
I think what you're after is using mod rewrites in your htaccess file...

Kind big, but have a little look at this, in particular the RewriteCond and RewriteRule. Post back with any more questions.
Apr 3 '08 #2
ak1dnar
1,584 Recognized Expert Top Contributor
Original Thread title "Lil php help please...." replaced with the current one.
Please make sure to use a good thread title that describes your question/situation.
Thanks
Apr 3 '08 #3

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

Similar topics

13
24097
by: lucanos | last post by:
Hey All, Just wondering whether there is an abbreviated "If - Then - Else" format in PHP, much like that possible in JavaScript. JavaScript allows an abbreviated version in the following...
2
1733
by: jeremylim2000 | last post by:
How can i show my microsoft address book email list, and show it as a list in my asp web page - jeremylim200 ----------------------------------------------------------------------- Posted...
9
2734
by: sergio | last post by:
Hi all, I have created the following script that will show/hide a menu based on checkboxes. It works fine in Opera but not on IE6! Does anybody knows a workaround this problem? Thanks for your...
2
1715
by: nikou_70 | last post by:
I have a page with one text box when I search name, return value such as (address, phone...) I show these value in the table but I want to show these in text box that I have in my page. ...
4
1378
by: robmarleh | last post by:
Hi, I've been trying to set up a php system to calculate and order and recieve delivery address/s. It's going pretty well so far but I having trouble with one particular part. I've been trying...
4
1887
by: Ken | last post by:
Is there any way to show current webpage in Label or textbox? for example, if the page address I browse currently is http://localhost/try/default.aspx then I want to show the information about...
2
1225
by: llScrubll | last post by:
I need to get the code to show the address with spaces when being typed in. can someone please help me? this is the code: #include <cstdlib> #include <iostream> using namespace std; int...
3
1110
by: r.e.s. | last post by:
Can the following program be shortened? ... def h(n,m): E=n, while (E!=())*m>0:n=h(n+1,m-1);E=E+(E>0)*(E-1,)*n return n h(9,9) Note: Although it halts eventually in principle, this program...
3
1549
by: Joseph | last post by:
I have an expression which is used in a form to change a text box to either read "Action" or "No Action", based on the state of a series of 12 check boxes and three text boxes. I want to use the...
0
7037
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
6904
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...
0
7032
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,...
0
7076
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...
0
5321
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,...
0
4471
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
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
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 ...
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.