Results 1 to 5 of 5

Rewriting URLs without changing the address in the location or address bar?

This is a discussion on Rewriting URLs without changing the address in the location or address bar? within the General Discussion forums, part of the vBulletin SEO Discussion category; OK, how is this done?! For example, vBSEO writes the URLS for the forum in html format, but we all ...

  1. #1
    Member
    Real Name
    John Gonzalez
    Join Date
    Sep 2005
    Posts
    71
    Liked
    0 times

    Question Rewriting URLs without changing the address in the location or address bar?

    OK, how is this done?!

    For example, vBSEO writes the URLS for the forum in html format, but we all know that they're redirecting to php?this=232 or whatever.

    So why is it when I used 301 redirects for my non forum parts of the site ( eg article350.html = newsarticle.php?id=350 ) that the full php?etc shows in the address bar, when the "nice" URL shows in vBSEOd parts of the site?

    What's the trick here?

  2. #2
    Member
    Real Name
    John Gonzalez
    Join Date
    Sep 2005
    Posts
    71
    Liked
    0 times
    This is how I currently do it:

    RewriteRule ^news(.*).html /index.php?page=mini2news&articlestart=$1 [L,R=301]
    RewriteRule ^article(.*).html /index.php?page=newsitem&newsid=$1 [L,R=301]


    And that changes the address bar.

  3. #3
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello Paul,

    you should remove "R=301" part from rewrite rules (so that URL is rewritten but not redirected), like:
    RewriteRule ^news(.*).html /index.php?page=mini2news&articlestart=$1 [L]
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  4. #4
    Member
    Real Name
    John Gonzalez
    Join Date
    Sep 2005
    Posts
    71
    Liked
    0 times
    I always thought 301 was the "search engine friendly" way?

    I'm confused by this (obviously).

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    These are two different cases - "RewriteRule" can be used for either rewrite or redirect.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Sitemap generating a lot more urls
    By poprulz in forum Troubleshooting
    Replies: 13
    Last Post: 02-28-2007, 05:15 PM
  2. Google Sitemap-Listing of old url's option-from 1.7
    By T2DMan in forum Member Articles
    Replies: 0
    Last Post: 04-02-2006, 09:46 AM
  3. I need to rewrite some old urls since changing the location
    By BamaStangGuy in forum Custom Rewrite Rules
    Replies: 10
    Last Post: 12-27-2005, 03:47 PM

Posting Permissions

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