Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Apache Mod Rewrite Help (Read 703 times)
Acid_Blast
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Mar 22nd, 2005
Apache Mod Rewrite Help
Apr 3rd, 2005 at 3:03am
Print Post  
Hello,

I need some help with using Apache Mod Rewrite.
I'm trying to do two things

1.) change my url from /articles/article.php?p=yabb to /articles/yabb

2.) I'm also trying to make it so the server automatically adds a / when going to a url such as http://www.yourdomain.com/forums

Right now it just gives a 404 error unless you goto http://www.yourdomain.com/forums/

I've googled for some tutorials but I can't understand how it works.

Thanks for your help,
-AB
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Apache Mod Rewrite Help
Reply #1 - Apr 5th, 2005 at 11:42am
Print Post  
Try this

Code
Select All
DirectoryIndex YaBB.pl

RewriteEngine On
RewriteRule ^$ http://www.yourdomain.com/ [R=301,L]
RewriteRule ^articles/article.php?p=yabb(.*) articles/yabb$1 

  

The Administrator.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint