473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

How to get desired URL

25
Hi there,

pardon me or suggest me the tag for this question.

I have developed a website, using Twitter API. Now a little but important problem i am facing is expected url.
There will be users on my site who are going to get details with their user name.

My site url is : www.mysite.com/
it also works on : www.mysite.com/home.php
and : www.mysite.com/FinalShow01.php

Now what i want is user should be searched when he enter his name as : www.mysite.com/username


I also tried this thing on server cpanel, but could not get it done.

Please Help!!!
Jun 16 '10 #1
1 2383
dlite922
1,584 Expert 1GB
You need to use URL rewrite to check if no file exists (or check that username is not shaped like a file), then rewrite it to something like "?user=username" hand it off to a php page that will check it against a database, IF no user is found, a 404 should be displayed.

Look into your server's url rewrite features.


Dan
Jun 16 '10 #2

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

Similar topics

1
by: chuck amadi | last post by:
By the way list is there a better way than using the readlines() to > > >parse the mail data into a file , because Im using > > >email.message_from_file it returns > > >all the data i.e reads one...
2
by: Matt | last post by:
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px. Here's my attempts and problems: ...
1
by: Alexander | last post by:
Scroll IFrame Content to desired Position (JavaScript) ====================================== How can I scoll the content of an Ifram to a desire Position? The function should be:...
7
by: Bert Visscher | last post by:
Hello everyone, I would like to let visitors of my website be able to go directly to a desired page, by using a URL like www.example.com?progname. I thought I could do this as follows: <html>...
1
by: Don Leverton | last post by:
Hi Folks, I *can* calculate the Gross Profit Percentage where both the Cost and SellPrice are known, using the formula: (SellPrice - Cost) / SellPrice = GPP eg ($24.92 - $14.95) / $24.92 =...
4
by: willjay | last post by:
I cannot believe that vb.dotnet doesn't have a better way to create data entry webforms and winforms other than just drag and drop and cut and paste. Why is there not a good formwizard , not the...
1
by: Oleg Subachev | last post by:
How to show the desired topic of .chm file ? Neither this call: Help.ShowHelp( this, "Test.chm", "Registration" ); nor this one: Help.ShowHelp( this, "Test.chm", HelpNavigator.Topic,...
11
by: samannoychatterjee | last post by:
Hello , I am using preg_match function to search a string. My desired result would be if $rollno=0710 or 7109 or 109 or 071 or 710 is given it would return true else false. My code is ...
0
by: Soulz | last post by:
Hi i need to do a project that connect to a desired wireless network in visual basic 2008. Currently i need to select manually from the wireless network list outside the vb program first the...
1
by: Nilesh K R | last post by:
hello, I am try to retrieve data from my c# windows application to excel sheet and store this .xls file to desired location. but my problem is that my code save excel file at a predefined location....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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...

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.