473,394 Members | 1,810 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,394 software developers and data experts.

Clean URLs

107 100+
i have been trying a hell lot to achieve the task of cleaning my urls but has not been able to succed. I downloaded the example codes from http://www.lucabiagini.com/2008/03/p...friendly-urls/ in order to understand the way and tried it in my machine. But even this example do not work in my machine. Do not work in the sense that when i click on an archive entry i am directed to the url http://localhost/ex/single.php?id=1. This means the url is not in the form as it ought to be.

I am using WAMP. i am sure this example sampe is working perfectly and there might be some other way to deal for the solution in WAMP. Please advice me!
Apr 16 '09 #1
8 2879
Dormilich
8,658 Expert Mod 8TB
but you have Apache with a working mod_rewrite?
Apr 16 '09 #2
raamay
107 100+
@Dormilich
yes i have done it ...............................
Apr 16 '09 #3
Dormilich
8,658 Expert Mod 8TB
what does your .htaccess file look like?
Apr 16 '09 #4
raamay
107 100+
infact today i am with somewhat a better picture in understanding the clean urls. In case of me what i wanted was to transform url something like this.
Expand|Select|Wrap|Line Numbers
  1. http://www.mysite.com/record.php/202
  2.  
instead of
Expand|Select|Wrap|Line Numbers
  1. http://www.mysite.com/record.php?id=202
where the id value is from mysql database.

People usually have tutorials which teaches us how to write the htaccess file without giving the details of whole scenario. In my case i think its not just writing into htaccess file that will suffice my need. i think we have to write some php script also to achieve this. So, this is what i wanna know?
Apr 17 '09 #5
Dormilich
8,658 Expert Mod 8TB
to be honest, I don't see the necessity to use PHP too. usually a correct .htaccess file should do it.
Apr 17 '09 #6
raamay
107 100+
@Dormilich
i see, ok then please direct me how to do it if you dont mind.
Apr 17 '09 #7
Dormilich
8,658 Expert Mod 8TB
read here or here. this should get you started.
Apr 17 '09 #8
mwasif
802 Expert 512MB
A simple and good tutorial on URL rewriting http://corz.org/serv/tricks/htaccess2.php
Apr 19 '09 #9

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

Similar topics

1
by: phpkid | last post by:
Howdy I've been given conflicting answers about search engines picking up urls like: http://mysite.com/index.php?var1=1&var2=2&var3=3 Do search engines pick up these urls? I've been considering...
3
by: somaboy mx | last post by:
I'm looking for a way to come up with clean urls like http://www.mysite.com/products/233 instead of http://www.mysite.com/products.php?pid=233 without having to rely on mod_rewrite or other...
7
by: Creative Acceleration | last post by:
Hi all, I need to convert the Query Strings into Clean URLs, Found some articles on PHP and Apache server.. How do we it them with ASP ?? Thanks Kart
26
by: Howard Brazee | last post by:
I would like to click on a URL of a html document that will open several URLs at once for me. Does someone have an example of a html document that will do this?
1
by: DM | last post by:
I'm working on a site with more than 1700 HTML files. We'll be moving files around on this site a lot because we're reorganizing it. I'm thinking of writing a script that will convert all URLs in...
0
by: Sharon | last post by:
Hi all. How do i implement clean urls? Any help or article links are appreciated. Thanks, Sharon.
4
by: Jeeran | last post by:
We use an ISAPI filter to convert long urls into short clean ones. For example: "Site.com/user/john/" Is re-written as: "Site.com/user/userinfo.aspx?uid=john" Now, "userinfo.aspx" contains a...
3
by: WebCM | last post by:
How to apply nice URL-s into CMS? 1. Should we use nice urls for every page? 2. Do we need to put a FULL path into <a href="">? 3. What is faster and better? a) 10 rules in .htaccess...
3
by: d3vkit | last post by:
I've been using apache and php to create clean urls for a while, and suddenly the other day it just stopped working. My host is godaddy.com and I think this might be the source of my trouble, but...
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
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
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
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
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
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...

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.