modify script with mod_rewrite?

modify script with mod_rewrite?

am 07.04.2008 09:26:13 von raj

Hi,

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 www.classiccarsfinder.co.uk
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?

am 07.04.2008 10:47:23 von Erwin Moller

raj schreef:
> Hi,
>
> 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

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

Are you using it in a hyperlink, like:


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:



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

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

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

Yes, as described above.

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

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.

Regards,
Erwin Moller

>
> P.S the site I'm working on is similar to www.classiccarsfinder.co.uk
> 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)
>