Announcement

Collapse
No announcement yet.

I need some help with Fixing Internal Links in htaccess (I know another thread)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • I need some help with Fixing Internal Links in htaccess (I know another thread)

    Team

    I could use some help.
    I recently upgraded my boards to 4.2.5 and also removed VBSEO in the process.
    I followed the instructions I found to create an htaccess per their rewrite guidlines but I either did something wrong or need some help deciphering how to build the new htaccess.

    My biggest goal is to fix broken links internally on the forums after the upgrade, but also indexed content on google. etc.

    here is an example of a thread when I had VBSEO on (this link is now broken if a user clicks on it with a 404 error)

    Code:
    https://cmsracing.com/champion/forums/assetto-corsa-sunday-historics-league-85/fall-winter-car-signup-thread-33419/
    here is an example of that thread after VBSEO removed and using basic friendly URL's in vBulletin 4.2.5
    Code:
    https://cmsracing.com/champion/forums/showthread.php?33419-Fall-Winter-Car-Signup-Thread

    It's an Apache 2.4.35 server

    any help on giving me the htaccess would be appreciated
    also does this go in my domain root or my forum root for htaccess?

    David

  • #2
    Quick follow-up. It Auto Magically started working after I tried the .htaccess a second time. This is what I am using.

    Question, do I need both the http and https line here or is that redundant? I put them both in because as part of the upgrade process we converted the site to SSL

    Code:
    
    RewriteEngine on
    RewriteRule [^/]+/[^/]+-([0-9]+)/ http://mydomain.com/forums/showthread.php?t=$1 [L,R=301]
    RewriteRule [^/]+/[^/]+-([0-9]+)/ https://mydomain.com/forums/showthread.php?t=$1 [L,R=301]

    Comment

    Related Topics

    Collapse

    Working...
    X