Results 1 to 4 of 4

Thread: Dynamic URL to Dynamic url with mod rewrite

  1. #1
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Dynamic URL to Dynamic url with mod rewrite

    Hi guys,
    i have a problem with my web page...
    I run wordpress blog, and before i was using url-s of this form:
    http://webpage.com/myseophrase/title-of-thread
    and now i change to:
    http://webpage.com/title-of-thread
    The problem is that i'm getting allot of 404 pages, and this is no god for google & my PageRank, sow how to rewrite all url-s of type
    http://webpage.com/myseophrase/anything
    to
    http://webpage.com/anything typed by the user?
    thanks in advance

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    How many pages did you have a few or a lot? You could set something up on your server or have your host set something up for you. See the 300's for information on redirects and which you need or would want.

    http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

    For these the pages will still have to exist.

    javascript redirect:
    http://www.tizag.com/javascriptT/javascriptredirect.php

    meta redirect:
    http://en.wikipedia.org/wiki/Meta_refresh

  3. #3
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well i'm getting 824 404 Errors, and this is a complete change for my website structure.
    Another problem is that i usually on all my threads i link to other threads in my webpage and i must edit all links?
    Please, if there is a solution ...

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Go with a 303 server redirect would be my recommendation. I've only had my host do this for me for requests coming from index.html to index.php when index.html was deleted (the 404 problem). I'd think they can set up the 303 to remove that directory name though and just load it in the root.
    The links should be corrected with the server redirects also.

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
  •