vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to make .html extensions ? (https://vborg.vbsupport.ru/showthread.php?t=301390)

SiteTalkZone 08-19-2013 05:24 PM

How to make .html extensions ?
 
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 ?

Zachery 08-19-2013 05:28 PM

Its not worth it, It won't make anything better. I'd say, save your time and resources for something else, instead of messing with your current search results.s

SiteTalkZone 08-20-2013 12:55 AM

Quote:

Originally Posted by Zachery (Post 2439799)
Its not worth it, It won't make anything better. I'd say, save your time and resources for something else, instead of messing with your current search results.s

thanks but i still want to do it anyway
anyone ?

Zachery 08-20-2013 03:44 AM

So you want to kill your search engine rankings, just to get .html after the .php?

tbworld 08-20-2013 05:12 AM

Trying to help... but I have to agree with @Zachery. Maybe a clarification on why you want to go that route. You may have a very good reason for what you are trying to do -- that I have not thought of.

For myself it looks like I would be wasting my time explaining the process, because after you went through the trouble of doing it, you would soon revert back.

SiteTalkZone 08-21-2013 07:43 AM

Quote:

Originally Posted by Zachery (Post 2439876)
So you want to kill your search engine rankings, just to get .html after the .php?

Quote:

Originally Posted by tbworld (Post 2439880)
Trying to help... but I have to agree with @Zachery. Maybe a clarification on why you want to go that route. You may have a very good reason for what you are trying to do -- that I have not thought of.

For myself it looks like I would be wasting my time explaining the process, because after you went through the trouble of doing it, you would soon revert back.

Yes I understand the risk and still want to do that, what would I do for making the html extension to the threads ? please help me here

Zachery 08-21-2013 03:34 PM

Write tons of custom code to handle it, inside of the vBulletin software, then update your htaccess files for their mod rewrite rules.

SiteTalkZone 08-22-2013 05:21 PM

Quote:

Originally Posted by Zachery (Post 2440157)
Write tons of custom code to handle it, inside of the vBulletin software, then update your htaccess files for their mod rewrite rules.

can you please point me to step by step process ?

Zachery 08-22-2013 06:13 PM

Sure,

Learn PHP
Make changes.

SiteTalkZone 08-25-2013 03:54 AM

Quote:

Originally Posted by Zachery (Post 2440403)
Sure,

Learn PHP
Make changes.

If I knew that would not come asking help in the official help and support forum

tbworld 08-25-2013 05:17 AM

I am not trying to make you angry, I never want to make someone feel bad. Not my nature.

But vbulletin.org is the Official vBulletin "Modifications" Site. It is not the vbulletin "help and support" forum -- that is vbulletin.com. When you purchase vbulletin, you are paying for the licensing and support of the script not free help in making modifications. I am only stating this: because many people get confused about what vbulletin.org is.

On html extensions: I never replied to your question, because you never replied to mine. I asked you why you needed to have html as your extension?

------------------------------------------------------------------------------
Note to administrators of vbulletin.org
- if I am wrong here please correct my statement.
------------------------------------------------------------------------------

Zachery 08-26-2013 02:01 PM

I'd suggest you start here: http://www.php.net and start learning php, if this is something you really want. People are unlikely to do this for you, as it serves no purpose and would be completely useless to everyone else.

SiteTalkZone 08-27-2013 02:00 PM

Quote:

Originally Posted by tbworld (Post 2440906)
I am not trying to make you angry, I never want to make someone feel bad. Not my nature.

But vbulletin.org is the Official vBulletin "Modifications" Site. It is not the vbulletin "help and support" forum -- that is vbulletin.com. When you purchase vbulletin, you are paying for the licensing and support of the script not free help in making modifications. I am only stating this: because many people get confused about what vbulletin.org is.

On html extensions: I never replied to your question, because you never replied to mine. I asked you why you needed to have html as your extension?

------------------------------------------------------------------------------
Note to administrators of vbulletin.org
- if I am wrong here please correct my statement.
------------------------------------------------------------------------------

Sorry I am rude, Its what i read somewhere gives best result with google, and my fav forum has same settings so wanted this badly.

ccf 02-25-2015 02:42 PM

Hey I know this is an old post... but I had the same issue and this communuties responses are disappointing to say the least. The answer takes all of two seconds to give and yet no one gave it?

Here's the answer:
Code:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/([0-9]+\-.*)?\.html /$1/$2 [NC,L]

As for why you'd want to do this... if you have a lot of in-bound links pointing to *.html files you don't want to just invalidate those links. That'll kill SEO, bookmarks, etc.

cellarius 02-26-2015 08:25 AM

Quote:

Originally Posted by ccf (Post 2538734)
Hey I know this is an old post... but I had the same issue and this communuties responses are disappointing to say the least.

See, we have all been waiting for a true genius to finally register.
Quote:

The answer takes all of two seconds to give and yet no one gave it?
That is because the community thinks things through before answering. Now that you have provided the obvious and easy part, maybe you care to provide the other half of the answer, too? So now you can access pages with html extensions properly. Now all you have to do is teach vB to use html links internally. With your solution, all links in vB still don't have a .html extension.

Zachery 02-26-2015 10:39 PM

As cellarius has mentioned, you wrote a mod_rewrite rule, but you didn't actually do any of the heavy lifting to make it actually work with the application.

John Lester 02-27-2015 04:48 PM

Quote:

Originally Posted by ccf (Post 2538734)
Hey I know this is an old post... but I had the same issue and this communuties responses are disappointing to say the least. The answer takes all of two seconds to give and yet no one gave it?

Here's the answer:
Code:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/([0-9]+\-.*)?\.html /$1/$2 [NC,L]

As for why you'd want to do this... if you have a lot of in-bound links pointing to *.html files you don't want to just invalidate those links. That'll kill SEO, bookmarks, etc.

Not being an ass here, I have no idea why you would have in-bound links pointing to .html or .htm files :confused:

ccf 03-04-2015 01:28 PM

Quote:

Not being an ass here, I have no idea why you would have in-bound links pointing to .html or .htm files
The old version of vBulletin linked to .html files, adn our in-bound was built while we were using it.

squidsk 03-04-2015 02:43 PM

Instead of trying to hack html into new versions of vb, why not just redirect the inbound html links to the appropriate php links in the current version?

thetechgenius 03-05-2015 04:10 PM

All you have to do is install DBSEO and configure it. It will allow you to have HTML extensions instead of PHP and a lot of other things. And you dont need any coding skills to install it.

ccf 03-12-2015 01:43 PM

Quote:

All you have to do is install DBSEO and configure it. It will allow you to have HTML extensions instead of PHP and a lot of other things. And you dont need any coding skills to install it.
I think DBSEO does not support vBulletin 5

--------------- Added [DATE]1426171567[/DATE] at [TIME]1426171567[/TIME] ---------------

Quote:

Originally Posted by squidsk (Post 2539508)
Instead of trying to hack html into new versions of vb, why not just redirect the inbound html links to the appropriate php links in the current version?

That is what my solution does. Redirect the page.html to /page/

cellarius 03-12-2015 01:49 PM

Quote:

Originally Posted by ccf (Post 2540248)
I think DBSEO does not support vBulletin 5

This is a vB4 thread.

thetechgenius 03-12-2015 04:19 PM

Quote:

Originally Posted by ccf (Post 2540248)
I think DBSEO does not support vBulletin 5

--------------- Added [DATE]1426171567[/DATE] at [TIME]1426171567[/TIME] ---------------



That is what my solution does. Redirect the page.html to /page/

Yeah, this is the vB4 Section. lol

ccf 03-12-2015 05:16 PM

Quote:

Originally Posted by thetechgenius (Post 2540264)
Yeah, this is the vB4 Section. lol

Yes, I know. But you are suggesting a plugin that is unsupported by VB and not compatible with the newest version of VB.

I am still dealing with the vbseo nightmare. VB Tech Support are unable to provide support for third party pluggins. So as a good practice, I would like to keep with VB standards (btw, there aren't to high :D)

cellarius 03-12-2015 07:23 PM

Every third party addon is unsupported by vB. And virtually no addon will work with vB5, because, stupidly, IB chose to remove the plugin system. That says nothing about the quality of the addon, but much about IB.


All times are GMT. The time now is 11:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01316 seconds
  • Memory Usage 1,795KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete