![]() |
This is a really nice plugin, that's for sure.. But I have a small issue. As soon as I alter the links, the previous SEO URL will give a 404 / dead link. Anyway possible that the old SEO (For example, the RewriteRule ^forums/ can be "forward" to the new url without touching the whole link? So the whole link from:
www.xxx.com/forums/34-test to www.xxx.com/sections/34-test will merely forward forums to sections without touching the whole link together. Second, is it also possible to get rid of the whole "forums"? so instead of: www.xxx.com/forums/34-test It will show: www.xxx.com/34-test |
Quote:
For your second question; i've not tried every possible combination of rewrites; but that one should work. |
Quote:
domain.com/forums/10-off-topic or something like this. |
will this work with a sitemap?
if not, than I don't find it useful ? |
Quote:
Quote:
|
i get this error:
No thread specified. If you followed a valid link, please notify the administrator but link is in this mode: /showthread.php?Prshndetje-dhe-Urime/KiSs-8111 |
@WxP
1. It seems you are using the experimental code to create links. You need to create your own rewrite rules for this to work. It's also experimental if you can't get it working on your own, you will have to wait untill I've got the code more stable and included it in the main product. 2. You don't have the friendly urls set to mod_rewrite. This mod only works if you use that setting. 3. I'm guessing here but if you put the id right at the front of the url (eg before even the forum) it /might/ work as you've got it setup. eg: /showthread.php?8111-Prshndetje-dhe-Urime/KiSs |
Added a screenshot of the options provided by this mod.
|
i do all this you can check!
i put this code in .htaccess Code:
|
RewriteRule ^/threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
should be RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING} Thats either a bug in my script, or you put a / at the beggining of your threads setting |
1 Attachment(s)
I have trying /threads/ /threads threads/ Not working :(
|
Code:
#Credits: Christopher Riley, Vbulletin, http://www.vbulletin.com/forum/showthread.php?325798 Bear in mind, you need to SAVE the settings before the rewrite script will give you upto date results. |
Thank you, All installet but addons dont have chans with my script!
Plugin is on you can check www.forumivirtual.com if it work! |
You need to have mod_rewrite urls switched on.
|
If I try to view forums as guest I get a 404 Not found error with the url being www.mydomain.com/forum/forumtitle. When I log in, I can get to forum as the url changes to www.mydomain.com/forum/forum/forumtitle
Any idea what is wrong? |
I think this is a known bug in vbulletin; thou I thought it had been fixed...
Edit: was correct see http://www.vbulletin.com/forum/proje...?issueid=35139 If you change the forums prefix to something other than forum eg f or forums, it should work correctly. |
Quote:
Is there any way to have it domain.com/forum/title rather than domain.com/forum/f/2-title? Or even a way to just remove the forum id? |
You can't remove the forumid - vb needs that to know which forum to show :p As for removing the 'f/' Its doable, however the more you mess around with the internals of the rewriting the more issues arise from it.
I have a really nice bit of code that rewrites threads to be /forums/forum-title/subforum-title/thread-title-threadid as elegant as it was, it required lots of little adjustments here and there to have it work properly. |
can i customize it like That
::thread:: http://v.3bir.com/1/ page 2 http://v.3bir.com/1-2/ ::Forums:: http://v.3bir.com/f14/ page 2 http://v.3bir.com/f14-2/ ::Members:: http://v.3bir.com/m1/ |
This mod allows for simple customisations only; as it relies on vbulletins own rewriting classes. The more you try to customise, the more likely it is that you will have knock on effects else where.
Once vbulletin is a bit more stable and its unlikely that the url classes will change too much between versions, at that point i'll look into other things that can be achieved. |
Thank you Carnage
|
This is working great for me up to a point, but what I'd really like now is a way to remove the forum number in the friendly URL.
i.e., right now it is showing: http://mydomain.com/forums/forum/1234-the-forum-title and I'd like it to just say: http://mydomain.com/forums/forum/the-forum-title Anyone know a way to do this? It doesn't have to be part of the product, if someone can tell me what .php file to change and where, and what to put in .htaccess, that would work for me too. thanks very much~ |
can't do that unfortunatly. Vb needs the number in order to identify which forum/thread is being accessed.
|
Quote:
from: http://mydomain.com/members/1234-UserName to: http://mydomain.com/members/UserName Getting rid of the user number. There is underlying code already there to work without the number. http://mydomain.com/member.php?username=UserName What would be needed is a similar change to forum.php to process parameter forumname=ForumName Then comes the corner case that ForumName is not a unique key. vbSEO handles this by moving the forumid to the other side of the slash. from: http://mydomain.com/forum/1234-the-forum-title to: http://mydomain.com/f1234/the-forum-title |
This is excellent stuff!
What/Where is necessary to change to enable.. from: http://mydomain.com/album.php?u=1234 to: http://mydomain.com/members/UserName/albums Then from: http://mydomain.com/album.php?albumid=345 to: http://mydomain.com/members/UserName/albums/AlbumName Finally from: http://mydomain.com/album.php?albumi...tachmentid=456 to: http://mydomain.com/members/UserName...56-PictureName ? |
The member one might be doable then, however you already identified the issue with doing the same for forum names and thread titles -> the titles are not unique.
As for moving the forumid to the other side of the slash, take a look at the code in the experimental zip i uploaded; there is at lease one example in there that shows how to do things like that. (your url would probably end up as forums/1234/forum-title thou; this can be changed but requires substantially more work) album rewriting is not supported at all by vbulletin atm, I'm personally hoping that this is because they plan to give albums a major overhaul in 4.1 so didn't bother changing anything in 4.0 |
i have a problem, when i write blog.xxxx.net this is the main forum, no blog.php
this is my htaccess: Code:
RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING} also i need to edit this: http://www.vbulletin.com/forum/proje...?issueid=37477 in my template, for relative path url changes :/ |
Just a brief look at your htaccess, i think its somewhat wrong. Try this instead:
Code:
|
Hi there, thanks for this add-on which seems to solve some of the mess i had with the default URLs.
I keep getting one problem and maybe it could be solved by editing rewrites or something else along this mod ? My Unregistered user is being redirected from http://www.example.com to http://www.example.com/content/ In fact the "Home section" leads to this /content/ whereas i would like it to be clean (root). Which basically means i have no canonical URL to share. The only place i can see i could edit is here but it says "leave them as are": Code:
#these rules can't be edited by my mod, so leave them as are. Any idea ? Thanks for your attention and keep up the good work :up: |
Unfortunatly, I've not yet figured out a clean way of editing the urls generated by the CMS; it seems to require a huge amount of editing of php files to get anywhere.
As for your other problem; I've got that set to work on my development board, but I don't remember how :s What are the values for the settings CMS url and default page under content management? |
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 |
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 |
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.
|
Thanks for your time... It doesn't work this way but i think i will reinstall from scratch and see what happens.
|
i changes threads to /sujet it's work, but all of old url on threads/... are don't word i have error
|
The best way around that is to leave the old rewrite rule for threads in place.
Also, don't forget to hit installed :) |
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! |
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. |
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 Code:
www.a.com/threads/2277/ 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 Code:
www.a.com/fourms/2/ 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! |
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 03:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|