|
Posted by juglesh on 02/04/06 04:26
Jim Carlock wrote:
> "Al" <alexrussell101@gmail.com> wrote:
> <snip>...</snip>
>
> The way it exists currently, the javascript fails to help in regards
> to search engines. Each image carries some associated text, and
> soon it will carry the following independent items:
>
> <meta name="description" ... />
> <meta name="keywords" ... />
> <title>Independent Title</title>
> <h1>Independent Heading For the Image</h1>
> <p>Independent text for the image in question.</p>
>
> And the page to view the image will contain keywords...
You're going to need to create (or have php create for you) separate
pages then. That doesnt mean that your curent JS gallery is out of the
question though. You can have it both ways. You need to make your
prev/next buttons be a real link and a js trigger:
<a href="/view.php?album=pools&pic=guitar.jpg"
onClick="JSfunctionThatShowsTHeNextPic(); return false"><img
src="/NextPicIcon.jpg"></a>
That will do the next pic in JS for most users, and for non JS browsers
and google, it will work like a regular link. (well, I know it works
for non-JS users, I dont know for certain about google)
You've got to get php to do all that figuring out for you though.
Here's what you're going to do:
1. look in the specified folder, make a list (array) of the picture
files.
2. go through the list, read in the key words and other text that
matches each pic from a DB or txt files.
3. spit out the JS and the html to make the gallery and the keywords.
> I'm trying to figure out which will work better of the following two
> methods. The goal is to help address search engines and create
> a server side manner in which to display the pages, employing
> keywords in the addressbar.
>
> (1) swimmingpool.php?id=1
> (2) view.php?type=swimmingpool&id=1
> or by getting rid of the numerical identifiers...
> (3) view.php?type=customswimmingpool&pool=customguitarpool
How 'bout
pool-custom-guitar.htm
You need .htaccess to tell mod_rewrite to 'rewrite' your URL. It will
take the URL above and translate it into:
view.php?type=custom&pool=guitar
(by the way, send those boys up to my house, I'd like one of those
guitar pools. Make mine a tele, though ;)
> Keywords for each image and search engines are the goals. I
> wanted to avoid creating independent HTML pages, but that might
> represent the best way to go as far as search engines goes, and
> place them inside the appropriate folders on the server.
>
> Some people try to change the text on images to get Google to
> come back to their website more often. But I tend to think that
> Google probably caught onto that a long time ago and drops
> everything after the question mark (?). I imagine Google might
> skip changing dates as well. For instance if the only thing that
> changes on the page is a current date...
For what it's worth, google doesnt seem to have a problem with indexing
my ugly php urls...
--
j
[Back to original message]
|