vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Custom SEO urls (mod_rewrite only) (https://vborg.vbsupport.ru/showthread.php?t=231568)

Carnage 12-30-2009 01:11 AM

ok; it is doable, however theres an aditional edit that needs to be made around line 604 find:
PHP Code:

        // REQUEST_URI is dependable for apache
        
if (isset($_SERVER['REQUEST_URI']))
        {
            
// return the raw url
            
$url $_SERVER['REQUEST_URI'];
            
$url $this->registry->input->strip_sessionhash($url);

            return 
$url;
        } 

Replace

PHP Code:

$url $_SERVER['REQUEST_URI']; 

with
PHP Code:

$url 'http://' $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 

I dont know if this will have any knock on effects elsewhere, but it seems to be working for me on my dev board. You'll need to set a server alias for forums.yourdomain.com to be the same as yourdomain.com in apache and you'll also need to edit the cookie [s]path[/s] domain to cover your entire domain (eg set it to .yourdomain.com). Once you've done this, if you set threads to http://forums.yourdomain.com/threads and forums to http://forums.yourdomain.com with a bit of tweaking, you should be able to get it right.

Carnage 01-06-2010 04:17 PM

I've updated the first post with a product and uploadable file which will allow customisations from the admincp (without requiring file edits to vbulletin php files)

Charlie98902 01-06-2010 04:53 PM

Great work looks easy and just waiting on the bugs to be worked out.

Carnage 01-07-2010 12:05 PM

You could always assist with that process by installing it in a development enviroment and seeing if you can find some bugs :P

Charlie98902 01-07-2010 01:12 PM

Oops re-read and the default mod rewrite won't work as I get the 500 errors right now.

Carnage 01-07-2010 06:17 PM

What version of apache are you running?

Shai Gar 01-13-2010 08:26 PM

does this work with 4.0.1 as i don't seem to see any new options in the and admincp when i install the product

Carnage 01-13-2010 10:22 PM

The options are listed under settings -> options -> Friendly URL settings.

winstone 01-13-2010 11:34 PM

Quote:

Originally Posted by Carnage- (Post 1954923)
The options are listed under settings -> options -> Friendly URL settings.

I can't find it

Carnage 01-14-2010 10:46 AM

For some reason, the settings fields were missing from the product file :S the phrases for them were there but the options themselves weren't...

Please try the latest version, alpha 3 and see if the settings now appear.


All times are GMT. The time now is 01:46 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.01320 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete