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)

frmessages 05-15-2010 02:06 PM

Thanks for your answer.

I have these settings :

CMS url :
/
Default page :
1-Index

CMS url in tabs :
/

And my htaccess in root looks like that (the rules for showthread, member, blog etc. work)
Code:

RewriteEngine on

# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/

RewriteCond %{HTTP_HOST} !^www.example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# Forum
RewriteRule ^voyage/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^membres/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^billet/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]


frmessages 05-15-2010 02:10 PM

Thanks for your answer.

I have these settings :

CMS url :
/
Default page :
1-Index

CMS url in tabs :
/

And my htaccess in root looks like that (the rules for showthread, member, blog etc. work)
Code:

RewriteEngine on

# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/

RewriteCond %{HTTP_HOST} !^www.example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# Forum
RewriteRule ^thread/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^membres/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^billet/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]


Carnage 05-16-2010 09:52 AM

My settings differ from yours in that my cms url and cms url in tabs is set blank not to /; thats the only differance I can see that might make a change.

frmessages 05-17-2010 01:40 PM

Thanks for your time... It doesn't work this way but i think i will reinstall from scratch and see what happens.

kho91 06-03-2010 12:05 PM

i changes threads to /sujet it's work, but all of old url on threads/... are don't word i have error

Carnage 06-04-2010 09:18 AM

The best way around that is to leave the old rewrite rule for threads in place.

Also, don't forget to hit installed :)

sunkapoor22 07-30-2010 11:17 PM

I am looking to accomplish this, is this possible?

Currently I'm using "Basic Friendly URLs" which show a forum at:
http://www.domain.com/forums/forumdi...44-televisions
http://www.domain.com/forums/forumdisplay.php?96-cars

I would like the above two forum categories to display as:
http://www.domain.com/forum/televisions
http://www.domain.com/forum/cars

--

And then the threads inside forum categories currently display as:
http://www.domain.com/forums/showthread.php?24-sony-tv
http://www.domain.com/forums/showthr...7-honda-accord

I would like the above two forum threads to display as:
http://www.domain.com/forums/televisions/sony-tv
http://www.domain.com/forums/cars/honda-accord

Thank you!

Carnage 08-01-2010 10:42 AM

1, you need to have the number in the url so www.d.com/forums/1-cars

2, out of the box this mod doesn't do what you want for forum threads, however if you look at the experimental code there are some examples that may do what you want.

suiyuan 09-04-2010 03:53 AM

Hi,Carnage-
Great MOD, Thank you very much.
Actually, I don't care any long tail of rewrite mod.

I hope change the
Code:

www.a.com/threads/2277- title
to
Code:

www.a.com/threads/2277/
or even better
Code:

www.a.com/threads/2277-p1.html
Code:

www.a.com/threads/2277-p2.html
Code:

www.a.com/threads/2277-p3.html
......

Same as threads, I don't care long tail of forums.
I hope change the
Code:

www.a.com/forums/2-forumname
to
Code:

www.a.com/fourms/2/
or even better
Code:

www.a.com/fourms/2-p1.html
Code:

www.a.com/fourms/2-p2.html
Code:

www.a.com/fourms/2-p3.html
........

hope get your help.

Thanks again!

mofeu 11-05-2010 11:27 PM

I have a greek site and for example I have the following link
http://www.mofeu.eu/forum/showthread.php?5911-Εμείς-πάντως-δεν-φεύγουμε-από-εδώ/page2

and I don't want to appear the text between the link . Can I use this mode?

Thanks in advance


All times are GMT. The time now is 04:45 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.01374 seconds
  • Memory Usage 1,748KB
  • 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
  • (12)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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