modify script with mod_rewrite?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm trying to modify a script so that it has search engine friendly URLS.

At the moment it uses: javascript:changePage('2') to jump to page 2

which I believe won't allow search engines to follow the link as
javascript is invisible to them.

Is there a way to make these links search engine friendly.

I was thinking about reading up on mod_rewrite, but am not sure if this
will do the job.

P.S the site I'm working on is similar to
where the page jump links are at the bottom of the page.

Please can someone tell me if I'm heading in the right direction or
point me in the right direction.

Many thanks,

Raj (newbie)

Re: modify script with mod_rewrite?

raj schreef:
Quoted text here. Click to load it

javascript:changePage('2') ?
What does that mean?

Are you using it in a hyperlink, like:
<a href="javascript:changePage('2');">page2</a>

If so, fix that code.

It is ugly, uses JavaScript pseudocode (don't), and fails for all who
have JavaScript disabled.

The solution is to make a valid hyperlink:
<a href=" ">page2</a>

Quoted text here. Click to load it

Well yes, most searchengines have better things to do that evaluate
JavaScript, like following links.

Quoted text here. Click to load it

Yes, as described above.

Quoted text here. Click to load it

Don't make life misserable on yourself. Simply fix the hyperlinks.

Since you posted this to a PHP group, I expect YOU control the HTML
delivered by PHP, so simply fix the urls.

Erwin Moller

Quoted text here. Click to load it

Site Timeline