SitePoint Sponsor

User Tag List

Results 1 to 12 of 12

Thread: Mod Rewriting

  1. #1
    SitePoint Wizard cpvr's Avatar
    Join Date
    Apr 2004
    Location
    Spring, Texas
    Posts
    2,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mod Rewriting

    My friend and I both use mod rewrite to make our links /blah/blah. And my other friends use apache, but they get better rankings than us. Why is that? Our server(s) aren't configured to fit apache, so we use the mod rewrite function. How could I go about getting better rankings? Do search engines not support the mod-rewrite function or am i doing something wrong?

    I use this to rewrite the links.
    RewriteEngine On
    RewriteRule ^([0-9]+)$ /profile/$1/ [R]
    RewriteRule ^([0-9]+)/$ /profile.php?id=$1
    Last edited by cpvr; May 8, 2005 at 17:04. Reason: Could a moderator please move it to the right board?
    Love pets? Why not discuss virtual pets?
    Contact me on Twitter @cpvr

  2. #2
    Application Developer shabbirbhimani's Avatar
    Join Date
    Apr 2004
    Location
    India
    Posts
    2,272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its just not that mod rewrite can get you better ranking than your friends. There are lots of other issues as well.

  3. #3
    SitePoint Wizard cpvr's Avatar
    Join Date
    Apr 2004
    Location
    Spring, Texas
    Posts
    2,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shabbirbhimani
    Its just not that mod rewrite can get you better ranking than your friends. There are lots of other issues as well.
    And whats that? My friend's site is younger than mine, but yet he's ranking higher than me. What should I do?
    Love pets? Why not discuss virtual pets?
    Contact me on Twitter @cpvr

  4. #4
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    Plano
    Posts
    643
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i was under the impression that mod_rewrite was a feature of apache... they are not 2 seperate things, but one adds onto the other

  5. #5
    SitePoint Wizard cpvr's Avatar
    Join Date
    Apr 2004
    Location
    Spring, Texas
    Posts
    2,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by XtrEM3
    i was under the impression that mod_rewrite was a feature of apache... they are not 2 seperate things, but one adds onto the other
    Meh. Then i don't see why it's not working for me.

    Its like the search engines are still indexing the /profile.php?id=$1
    So, i'm not getting rankings because of that. How can I fix it? I have a directory and/or folder for webgames with the .htaccess and index.php. Well, i still have the profile.php in public_html, which powers the directory.

    So is something wrong on my part of the .htacess?
    Or is there something I need to add to "Apache Handlers"?
    Last edited by cpvr; May 8, 2005 at 17:05.
    Love pets? Why not discuss virtual pets?
    Contact me on Twitter @cpvr

  6. #6
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    Plano
    Posts
    643
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya i hav had that problem, too...where the SE's still index the old pages

    what i did was make a 302 to redirect the SE to the new page, and tell it that it has "Premanently Moved". This not only forwards SE's, but also PR.

  7. #7
    SitePoint Wizard cpvr's Avatar
    Join Date
    Apr 2004
    Location
    Spring, Texas
    Posts
    2,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did that and you know what i dont get? His site is younger than mine and his profiles are only 4days old, but yet he has better rankings. Why is that? Its not like my site is clogged with crap or anything, but it has more content than his.
    Love pets? Why not discuss virtual pets?
    Contact me on Twitter @cpvr

  8. #8
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    Plano
    Posts
    643
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to me, sometimes the SE's can be a mystery

    i have put hours and hours on end working on 1 really good amazon affiliate website, while many people spend less than 30 minutes on cookie cutter websites, yet google hates me and loves them. some things just dont make sense.

    as for being 4 days old....he must've gotten supremely lucky to have been ranked within 4 days of making his site, usually it takes much longer (at least for google) to get indexed, and even longer to get ur deeper pages indexed.

    does he get more traffic than you?...or just better rankings?

    because when you have more content, that means that you will not only rank better for the keywords that you're targeting, but also for keywords that you dont expect. so even tho he may have better rankings on a few words, you probably have slightly worse rankings on a lot more words.

    content sites will almost always come out on top

    o and btw, i meant a 301 redirect...302 is temporary, 301 is permanent

  9. #9
    SitePoint Wizard cpvr's Avatar
    Join Date
    Apr 2004
    Location
    Spring, Texas
    Posts
    2,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by XtrEM3
    to me, sometimes the SE's can be a mystery

    i have put hours and hours on end working on 1 really good amazon affiliate website, while many people spend less than 30 minutes on cookie cutter websites, yet google hates me and loves them. some things just dont make sense.

    as for being 4 days old....he must've gotten supremely lucky to have been ranked within 4 days of making his site, usually it takes much longer (at least for google) to get indexed, and even longer to get ur deeper pages indexed.

    does he get more traffic than you?...or just better rankings?

    because when you have more content, that means that you will not only rank better for the keywords that you're targeting, but also for keywords that you dont expect. so even tho he may have better rankings on a few words, you probably have slightly worse rankings on a lot more words.

    content sites will almost always come out on top

    o and btw, i meant a 301 redirect...302 is temporary, 301 is permanent

    I don't think he gets more traffic than me, but I know for a fact that he gets better rankings. It could be that fact that hes listed in dmoz and i'm not, but that doesnt make sense.

    I have also have over 500 games listed and he has 400 something. So more content on my end=better, and i have page titles for each different page, so that the search engines will know that my page(s) are different.
    Last edited by cpvr; May 8, 2005 at 17:02.
    Love pets? Why not discuss virtual pets?
    Contact me on Twitter @cpvr

  10. #10
    Application Developer shabbirbhimani's Avatar
    Join Date
    Apr 2004
    Location
    India
    Posts
    2,272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cpvr
    I did that and you know what i dont get? His site is younger than mine and his profiles are only 4days old, but yet he has better rankings. Why is that? Its not like my site is clogged with crap or anything, but it has more content than his.
    he probably has more backlinks and more original content.

  11. #11
    SitePoint Wizard cpvr's Avatar
    Join Date
    Apr 2004
    Location
    Spring, Texas
    Posts
    2,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Backlinks? No, i have more than him.
    Orginal content? That could be the case, but I have more content relating to my fields.
    Love pets? Why not discuss virtual pets?
    Contact me on Twitter @cpvr

  12. #12
    SitePoint Member
    Join Date
    Jan 2005
    Location
    London
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by XtrEM3
    i was under the impression that mod_rewrite was a feature of apache... they are not 2 seperate things, but one adds onto the other
    Exactly, if you aren't running apache, then mod_rewrite is redundant


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •