Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 04-13-08   #1 (permalink)
Programmer
 
LyokoHaCk's Avatar
 
amd nvidia

Join Date: Aug 2006
Location: United States Inc.
Posts: 1,959

Rep: 73 LyokoHaCk is acknowledged by some
Unique Rep: 68
FAQs Submitted: 1
Trader Rating: 2
Default .htaccess help

I have the following htaccess file:

Code:
#Mihalism Multi Forum Host auto generated .htaccess file
RewriteEngine On
RewriteBase /
RewriteRule ^forums$|^forums/$ index.php [R=301,L]
RewriteRule ^forums/([-_a-zA-Z0-9]{3,30})$ forums/$1/ [R=301,L]
RewriteRule ^forums/([-_a-zA-Z0-9]{3,30})/(.*)$ phpBB3/$2?access_name=$1 [QSA,L]
It will make the url
http://mydomain.com/forums/somedirectory

How can I make it
http://mydomain.com/somedirectory
?

Thanks
LyokoHaCk is offline   Reply With Quote
Old 04-13-08   #2 (permalink)
Programmer
 
LyokoHaCk's Avatar
 
amd nvidia

Join Date: Aug 2006
Location: United States Inc.
Posts: 1,959

Rep: 73 LyokoHaCk is acknowledged by some
Unique Rep: 68
FAQs Submitted: 1
Trader Rating: 2
Default

help -_-!
LyokoHaCk is offline   Reply With Quote
Old 04-14-08   #3 (permalink)
Chiefly Ignorant
 
Scriptorum's Avatar
 
intel nvidia

Join Date: Jan 2008
Location: Atlanta, GA
Posts: 54
Blog Entries: 12

Rep: 13 Scriptorum Unknown
Unique Rep: 10
Trader Rating: 0
Default

Code:
RewriteRule ^forums/([-_a-zA-Z0-9]{3,30})$ forums/$1/ [R=301,L]
What this rule is doing is taking anything in the form forums/XXXX and adding a slash to the end of it. You could modify this rule to additionally remove the forums directory from the mix:

Code:
RewriteRule ^forums/([-_a-zA-Z0-9]{3,30})$ $1/ [R=301,L]
Give that a shot.
__________________
Quote:
Originally Posted by The Bartender Paradox View Post
crazy?...nah. when you cool with a fire extinguisher then your crazy.

System: Flaming Moe's MacBook Pro
CPU
Core 2 Duo
Motherboard
MacBook Pro
Memory
4GB DDR2-667
Graphics Card
512Mb NVIDIA GeForce 8600M GT
Hard Drive
200Gb 7200RPM
OS
OSX 10.5.2 / XP Pro / Boot Camp + Parallels
Monitor
17" Matte 1920x1200
Scriptorum is offline Overclocked Account   Reply With Quote
Old 04-14-08   #4 (permalink)
Programmer
 
LyokoHaCk's Avatar
 
amd nvidia

Join Date: Aug 2006
Location: United States Inc.
Posts: 1,959

Rep: 73 LyokoHaCk is acknowledged by some
Unique Rep: 68
FAQs Submitted: 1
Trader Rating: 2
Default

thank you

Last edited by LyokoHaCk : 04-17-08 at 04:02 PM.
LyokoHaCk is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 05:28 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.14132 seconds with 9 queries