vBulletin mod_rewrite

Reply

Join Date: Aug 2004
Posts: 157
Reputation: pulse is an unknown quantity at this point 
Solved Threads: 0
pulse's Avatar
pulse pulse is offline Offline
Posting Whiz in Training

Re: vBulletin mod_rewrite

 
0
  #201
Mar 27th, 2005
Originally Posted by Tdot
Hi guys, have been following this thread here...really like the idea of this mod and would like to give it a shot on my forums.



appears the URL is broken!
You could see the instructions + bug fixes in this thread http://www.daniweb.com/techtalkforums/thread12725.html
StreetLessons.com - My Blog about Business, Life & Success!
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 18
Reputation: agiacosa is an unknown quantity at this point 
Solved Threads: 0
agiacosa agiacosa is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #202
Mar 27th, 2005
That's the revised tutorial and it's different than Dani's. I looked and didn't see any fix to subforum issues.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 6
Reputation: SEO Report is an unknown quantity at this point 
Solved Threads: 0
SEO Report SEO Report is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #203
Apr 19th, 2005
Awsome tutorial, thanks for sharing.

I have two questions:

1. What about these "1 2 3 > Last" links that points to subsequent threads/pages? is there a way to change them to use standard URL?

2. Thread title in URL in archive, is this possible?

Thanks,
-k
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #204
Apr 30th, 2005
I've got a new version of the tutorial out, and it handles multiple pages and more: http://www.daniweb.com/tutorials/tutorial22840.html
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 6
Reputation: SEO Report is an unknown quantity at this point 
Solved Threads: 0
SEO Report SEO Report is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #205
May 2nd, 2005
My hat off to you, Dani! Installed without any problem! :lol:

Thanks a lot!

-k
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #206
May 2nd, 2005
You're referring to the new 3.0.7 one, right?
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 6
Reputation: SEO Report is an unknown quantity at this point 
Solved Threads: 0
SEO Report SEO Report is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #207
May 2nd, 2005
Originally Posted by cscgal
You're referring to the new 3.0.7 one, right?
Yep. First I installed it on a test server, then exported style to xml and imported it to my real website, and voila!

-k
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1
Reputation: ztka is an unknown quantity at this point 
Solved Threads: 0
ztka ztka is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #208
May 2nd, 2005
Hi, I found a problem, why my apache didnot work mod_rewrite module, I have installed it, it is my httpd.conf files

#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
######Load Php Module###########




Alias /vbb "C:/Apache_Group/Apache2/cgi-bin/vbb/"

<Directory "C:/Apache_Group/Apache2/cgi-bin/vbb/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>



.htaccess files

RewriteEngine on
Options +FollowSymLinks
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^post([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L]



The second question is:

My website is chinese font, if I use

<a href="$forum[url].html"><strong>$forum[title]</strong></a>

in my vbb template, it shows bad code, like this:

http://localhost/hoopchina/vbb/鲳国嗪�.html

How to resolve this problems? $forum[url].html

should I use <a href="forum$forum[forumid].html"> ?
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 9
Reputation: Jezella is an unknown quantity at this point 
Solved Threads: 0
Jezella Jezella is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #209
May 3rd, 2005
Hullo I'm new here and must say that I'm very impressed with this mod_rewwrite.

However, I have been looking at the most updated version and am a trying to incorporate this but am confussed by the following.

I have noted this:- Below are the PHP files that need to be edited. You will notice two lines at a time. The first line represents what to search for, and the second line represents what to replace it with.

So without further ado ...


$highlightwords = '&amp;highlight=' . urlencode(implode(' ', $display['highlight']));
$highlightwords = '-' . urlencode(implode(' ', $display['highlight']));

$display['forums']["$key"] = "<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\"><b><u>" . $forumcache["$forumid"]['title'] . '</u></b></a>';
$display['forums']["$key"] = "<a href=\"forum$forumid.html\"><b><u>" . $forumcache["$forumid"]['title'] . '</u></b></a>';
[/html]

showthread.php

[html]$highlightwords = iif($goto, '&', '&amp;') . 'highlight=' . urlencode($_GET['highlight']);
$highlightwords = '-' . urlencode($_GET['highlight']);

exec_header_redirect("showthread.php?$session[sessionurl_js]p=$getlastpost[postid]$highlightwords#post$getlastpost[postid]");
exec_header_redirect("threadedpost$getlastpost[postid]$highlightwords.html#post$getlastpost[postid]");


In the above I do not know if I should delete 1 line and add several.

Jezella
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #210
May 3rd, 2005
Please ask all questions related to the new tutorial in the new tutorial thread. This tutorial is entirely different. However, each paragraph has two lines - replace the first line with the second.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC