lucy24 - 11:01 am on Jun 30, 2013 (gmt 0)
My url on my blog is:
Is there any way to make it
but I would like it to become like the url I mentioned above.
You need to start by getting a firm grip on what you are doing. Afterward you can figure out the mechanics of how to do it.
If you're building your pages via php, it's safe to assume there is little-or-no relationship between the URL of a page and its physical filename. There may not even be a physical file.
Now, admittedly I only speak about three words of php, but I don't see the connection between the quoted code-- which seems to be entirely concerned with image files-- and pages. Unless your cat stepped on the keyboard and all those .png extensions are supposed to be .php
If you want your url to be
then use that form in all your links. A quick line in htaccess-- or IIS equivalent-- will then rewrite it to something along the lines of blahblah.php?page=nicepage&number=3. And then your php takes over and makes the page, just the way it's already doing. Except that if one of the things your php does is make links, you have to be sure it's making them in the "nicepage/3" form.
is one of those weird neither-fish-nor-fowl URLs. If the object is to make it pretty and get rid of the query string, why not dump the ".php" too? It's not doing anything; as long as you're rewriting to something with a query string, your rewrite can perfectly well include tacking on a ".php" that isn't in the URL.