1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

URL rewriting from php?id=1_0_1_0_C to directory: still useful?

Discussion in 'Search Engine Optimization' started by FlashVictim, Oct 31, 2005.

  1. #1
    Before I go though the hassle of doing this: is it useful to do?

    This feature allows your site to display URLs that are easier for search engines to index. Normally, the URLs of the site look something like this:
    SEMrush
    http://www.yoursite.com/comments.php?id=1_0_1_0_C

    With the URL rewriting feature enabled, URLs will instead look like this:

    http://www.yoursite.com/comments/1_0_1_0_C/
    This fools search engines into thinking that they are accessing a directory index rather than dynamic content, which greatly increasing the chance that your site will be thoroughly indexed.
     
    FlashVictim, Oct 31, 2005 IP
    SEMrush
  2. mattmdesign

    mattmdesign Well-Known Member

    Messages:
    1,201
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Yes, I think it would be even better if you could get your page's title into the URL too though.
     
    mattmdesign, Oct 31, 2005 IP
  3. jabz.biz

    jabz.biz Active Member

    Messages:
    384
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    70
    #3
    Yeah do this. The "?" can be your death! ...I heard from pros! :) For me it´s working not too bad!
     
    jabz.biz, Oct 31, 2005 IP
  4. FlashVictim

    FlashVictim Guest

    Messages:
    212
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok it is a hell of a job but I guess it will be worth it in the end!
     
    FlashVictim, Oct 31, 2005 IP
  5. Roze

    Roze Guest

    Messages:
    403
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #5
    URL's with one ? usually get picked up fine, look at this forum, threads are ?t=39285 no problem...
     
    Roze, Oct 31, 2005 IP
  6. tandac

    tandac Active Member

    Messages:
    337
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #6
    I recently redid my site to use modrewrite. If you have a well designed site that uses templates effectively and a good database backend, changing to a modrewrite style shouldn't be too difficult.

    I switched www.bbconnector.com over and all I really had to do was update a 6-12 pages and all was good.
     
    tandac, Oct 31, 2005 IP
  7. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #7
    There are I think at least two other threads on this question at DP.

    You really don't need mod_rewrite and there are some downsides to using it.

    See the HTML and phpBB-vBulletin forums.
     
    minstrel, Oct 31, 2005 IP
  8. Roze

    Roze Guest

    Messages:
    403
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yeah, one of those downsides is having too many rewrites can bring a server down!

    My site started as a PHPNuke installation - when I got savvy to SE-friendliness I installed the google tap module which mod rewrites every area of the site, well guess what, nuke runs every page off of one URL - modules.php or gate.html after it was rewritten.

    As my traffic increased, the server load on my VPS was huge thanks to that .htaccess file. I've since redone each site area into little standalone programs with their own .htaccess and it's much smoother. It's been good practice and I've learned alot of PHP and Mod rewrite skills in the process...scary for a while though, it was like my site was about to go down at any minute.
     
    Roze, Oct 31, 2005 IP
    minstrel likes this.
  9. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #9
    Another is creation of duplicate content.

    The bottom line is (1) you don't need it and (2) in most cases you are better off not doing it.
     
    minstrel, Oct 31, 2005 IP
  10. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I also don't think its needed, I just got 12,000 pages listed within a few weeks all of them having a ? in the URL.

    One thing I always try and do is steer clear of page.php3?id=79 and change page.php3?keyword=79.

    I find this works well and gets another keyword in the url, only use it if it is sensible to do so though.
     
    dave487, Nov 2, 2005 IP
  11. costy81gl

    costy81gl Well-Known Member

    Messages:
    187
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #11
    guys can you help to rewrite 3 nuke sites? what scrips do I need?
     
    costy81gl, Jan 6, 2006 IP
  12. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #12
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^comments/([^.]+)/$ comments.php?id=$1 [L]

    But if you got pages already indexed, don't do it!! Duplicate content!!!!
     
    Nintendo, Jan 6, 2006 IP