Results 1 to 15 of 15

Using existing rewrite rules

This is a discussion on Using existing rewrite rules within the Pre-Sales Questions forums, part of the Announcements & Pre-Sales category; Currently my forums have all forums and threads rewritten to things like http://domain.com/f23 or http://domain.com/t123.html hence the .htaccess looks like ...

  1. #1
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times

    Using existing rewrite rules

    Currently my forums have all forums and threads rewritten to things like

    http://domain.com/f23
    or
    http://domain.com/t123.html

    hence the .htaccess looks like
    RewriteEngine on
    Options +FollowSymLinks
    RewriteRule ^t([0-9]+).html$ showthread.php?t=$1 [L]
    RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
    RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
    RewriteRule ^f([0-9]+)$ forumdisplay.php?f=$1 [L]
    RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    (I'm using sitemaps)

    My question is, will I be able to keep this rewrite rule while using vbseo? I currently have over 160,000 pages indexed in google and I certainly wouldn't want dead links. I understand the actual internal linking of the pages in the forums would change.

    Basically, can you have two rewrite rules for one url?

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

    to setup a 301 redirection from these URLs to a new ones (and so keep them working), you should leave your current rewrite rules in .htaccess, but remove [L] part from them AND add rewrite rules from vBSEO's .htaccess to the bottom of resulting file.

    In this way, your "old" URLs will be rewritten to vB original links with rewrite rules in .htaccess and then vBSEO will redirect them to new URLs.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    Oh okay.

    Also, are there any plans to move everything to open source? I much rather have everything on my own server.

  4. #4
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Everything is on your own server. It's just encrypted.

  5. #5
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    Quote Originally Posted by ConqSoft
    Everything is on your own server. It's just encrypted.
    Why?

  6. #6
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Why what?

  7. #7
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    why is it encrypted?

  8. #8
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    To protect their work, of course.

  9. #9
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,267
    Liked
    558 times
    Quote Originally Posted by tavenger5
    Currently my forums have all forums and threads rewritten to things like

    http://domain.com/f23
    or
    http://domain.com/t123.html

    My question is, will I be able to keep this rewrite rule while using vbseo
    That's exactly the principle behind the modifiable URLs . If you want to keep your current URL format, simply set the following via your vBSEO CP:

    Forum URL Format
    f[forum_id]
    Thread URL Format
    t[thread_id].html
    It is that easy!
    Juan Muriente / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  10. #10
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    I'm just now getting into things since there was the sale.

    Is there an easy way to keep the vbSEO urls AND the existing urls and not have the 301 redirect?

  11. #11
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    That would be bad in the eyes of the search engines.

  12. #12
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    Quote Originally Posted by Oleg Ignatiuk
    Hello,

    to setup a 301 redirection from these URLs to a new ones (and so keep them working), you should leave your current rewrite rules in .htaccess, but remove [L] part from them AND add rewrite rules from vBSEO's .htaccess to the bottom of resulting file.

    In this way, your "old" URLs will be rewritten to vBulletin original links with rewrite rules in .htaccess and then vBSEO will redirect them to new URLs.
    btw, I tried this and it didn't work. I know the templates are still edited to include the old URL's, but the point is that the 301 isn't working :

    Main Forum - Forums (test forum)

  13. #13
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    That link works for me. What problem are you seeing?

  14. #14
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    see above, I edited as you were replying Try clicking on a thread.

  15. #15
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    ah, I figured it out. I had the old rewrite rules after the new vbSEO ones, hence they were trying to rewrite URL's that were already rewritten.

Similar Threads

  1. Syntax for Custom Rewrite Rules
    By Joe Ward in forum Custom Rewrite Rules
    Replies: 33
    Last Post: 02-10-2011, 09:49 PM
  2. vBSEO 2.0 RC7 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 17
    Last Post: 09-09-2005, 12:00 AM

Posting Permissions

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