Techniques for shortening URL with passed variables...
Posted 14 October 2006 - 03:52 PM
The reason I ask is that I have coded a gallery script for myself, and the links are a bit long (for example:: http://kilbad.com/in...s&album=general). I would like to make them shorter so I can more easily share them with family and friends.
I was just curious what other people with this problem have done.
Thanks so much in advance!
Posted 14 October 2006 - 04:43 PM
Here is a link to get you started with the basics.
There are other resources on the right column of the page to get you further if needed.
Posted 15 October 2006 - 01:55 PM
however, here is a question, I am using the following code in my .htaccess, WITHOUT the [R]::
RewriteEngine on RewriteRule ^photos/([^/\.]+)/?$ http://www.kilbad.com/index.php?id=photos&album=$1
However, it still redirects... for example, if I type http://www.kilbad.com/photos, I get redirected to http://www.kilbad.co....php?id=photos which shows up in the address bar.. how do I keep the second link hidden and keep the http://www.kilbad.com/photos in the address bar?
Posted 15 October 2006 - 06:44 PM
RewriteEngine on RewriteRule ^photos/([^/\.]+)/?$ http://www.kilbad.com/index.php?id=photos&album=$1 RewriteRule ^photos$ http://www.kilbad.com/index.php?id=photos RewriteRule ^photos/$ http://www.kilbad.com/index.php?id=photos
..but I still have the same question.. how do I keep the, for example, "http://www.kilbad.com/photos" in the addressbar rather than the "http://www.kilbad.co...hp?id=photos"?
Thanks so much for the help!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users