1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make .html extensions ?

Discussion in 'BlackHat Lounge' started by AAWebDev, Aug 19, 2013.

  1. AAWebDev

    AAWebDev Jr. VIP Jr. VIP Premium Member

    Joined:
    May 20, 2012
    Messages:
    678
    Likes Received:
    63
    Occupation:
    Forum Developer
    Location:
    Dexel Island
    Home Page:
    Hello, i wanted to know how to make .html extensions to the threads in vBulletin?
    my settings are -
    mod rewrite is on in admin cp
    RewriteRule ^threads/([0-9]+)-(.*)? showthread.php?t=$1.html - in the htaccess file
    still not getting .html as extension end of thread link.
    Suggestions ?
     
  2. oozyluce

    oozyluce Regular Member

    Joined:
    Jan 26, 2013
    Messages:
    277
    Likes Received:
    231
    Occupation:
    IT Coordinator, Senior Network Administrator
    Location:
    http://www.gaben.tv/
    Home Page:
    AFAIK vbulletin is not static html and uses php.
    You can't just rename your .php files to .html and expect it to work
     
  3. neutralhatter

    neutralhatter Jr. VIP Jr. VIP Premium Member

    Joined:
    Jun 23, 2010
    Messages:
    430
    Likes Received:
    330
    here is an example i found online:

    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.+)\.ext$ /$1.php [NC,L]

    google it for the original source. it will change to ext instead of php, but If you mess with it I'm sure you can change it to html
     
  4. AAWebDev

    AAWebDev Jr. VIP Jr. VIP Premium Member

    Joined:
    May 20, 2012
    Messages:
    678
    Likes Received:
    63
    Occupation:
    Forum Developer
    Location:
    Dexel Island
    Home Page:
    not happening :(
    anyone ?