The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
.htaccess problems
can anyone tell me why this isn't working? it's stored within the confessions directory.
HTML Code:
RewriteEngine on RewriteRule ^(.*)/$ index.php?confessionid=$1 RewriteRule ^(.*)/keyword/$ index.php?view=random&keyword=$1 RewriteRule ^(.*)/view=(.*)$ index.php?view=$1 www.site.com/confessions/580 www.site.com/confessions/view=random www.site.com/confessions/view=votes www.site.com/confessions/keyword/acid and yet none of them seem to be working. if i add a backslash after each one i don't get a 404 but for some reason the php isn't picking up the $_GET's or something. |
#2
|
||||
|
||||
I know my webserver has problems picking up .htaccess files that aren't in the webroot (allowoverride setting or something)
Slighty off topic: do NOT use (.*) to match URLs! It is greedy, so it willl often match more than you wanted, and is lazy because it allows anything to go through when it shouldn't. If it is an ID, use ([0-9]+) If it is a title (clean), use ([-a-z0-9]+) (adjust according to needs) Code:
RewriteEngine on RewriteRule ^([0-9]+)/$ index.php?confessionid=$1 RewriteRule ^([-a-z0-9]+)/keyword/$ index.php?view=random&keyword=$1 RewriteRule ^(.*)/view=(.*)$ index.php?view=$1 #dont understand the logic here |
#3
|
||||
|
||||
on the last one i wanted to be able able to have www.site.com/confessions/view=random/ and www.site.com/confessions/view=votes/ both work. thanks for your assistance thus far, i appreciate it.
i know that it's picking up the .htaccess file though, it's just not behaving as expected for some reason. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|