Forum Moderators: coopster

Message Too Old, No Replies

Rubbish extensions from PHP generated pages...optimized pages

         

hulahoop

4:01 am on Feb 19, 2005 (gmt 0)

10+ Year Member



Hello

I am about to take on a PHP package to build a new site. I was given info that most of the pages generated would look gribblish (rubbish).
www.abc.com/

I am however wanting my pages to have names like...aboutus.php, widgets.php and etc
This is also for Search Optimization purposes.
I heard that there is a componenet that can map pages generated to a specific name.

However if this is done, will the search engines really read it as aboutus.asp?

ogletree

5:45 am on Feb 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What you are looking for is mod_rewrite. You may also need to look and see if your php package has an SEO or URL rewrite patch. What you are talking about is very common.

You can turn a URL like www.domain.com/default.php?var1=5&var2=2344532&var3=98334 into www.domain.com/5/2344532/98334 which looks much better. URL's like the long one can work just fine and rank well but if you can start off using this you are giving yourself a better chance. Also there is evidence that says people are more likely to link to a better looking URL than an ugly one.

hakre

7:16 am on Feb 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



h i hulahop,

pages made of php do not need to look rubbish, it depends on the developer and the way of programming. while a long time most developer tended to use query strings a lot (that's the part of an URL after the "filename"), these pages had problems being indexed. but there are other approaches without or less query strings. that's possible too and means no problems for coding. it's even better when it comes to search engine indexing.

while database driven pages often came with lots of querystring-stuff, some people tend to use mod_rewrite for virtual url-mapping a more se-friendly url into a "standard" one with query-string. that's what ogletree is writing about and often another very good solution. but this solution will not help you with the file name like "aboutus" or "contact", it's often only a way to have query values in the filename or path part instead of after the filename.

hulahoop

8:34 am on Feb 19, 2005 (gmt 0)

10+ Year Member



Hello...

I am still not clear.
Does that mean mod_rewrite will be able to change something like www.domain.com/default.php?var1=5&var2=2344532&var3=98334 into something like www.domain.com/default.php (only).

Is it proven that search engines will be able to read it well and index well? That is my main concern?

Any disadvantages to mod_rewrite?
slower, complicated ...

jatar_k

5:21 pm on Feb 19, 2005 (gmt 0)

ogletree

5:46 pm on Feb 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The only thing you need to do is get rid of the? part. If you only have one page you can have any url look look like www.domain.com/default.php. If you have the URL

www.domain.com/default.php?var1=5&var2=2344532&var3=98334

You would want to make it look something like

www.domain.com/5/2344532/98334/

That still look like crap but works great for SE's.

mod_rewrite does add some overhead and slows it down. It all depends on how busy your site is and how big your server is. Unless your a really really busy site I would not worry about it.