Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
Thread: .htaccess mod_rewrite questions
03-20-2007, 04:02 PM #1
.htaccess mod_rewrite questions
I tried looking at documentation on the mod_rewrite forums but this stuff is like chinese to me!
I'm trying to change my links from
to something like
I don't even know where to start ... what to put in my .htaccess file.
03-20-2007, 05:46 PM #2
- Join Date
- Oct 2006
- United Kingdom
- Thanked 30 Times in 29 Posts
Create a .htaccess file and place it in your document root. and add the following
Code:ReWriteEngine on RewriteBase / # don't allow anyone to view your htaccess file ReWriteRule \.htaccess [F] RewriteRule ^(.*)/(.*)/$ /index.php?archive=$1&bid=$2 [L]
In your index.php, do the following
That should do the trick.Code:$archive = $_GET['archive']; $bid= $_GET['bid'];
03-20-2007, 05:58 PM #3
04-02-2007, 02:12 AM #4
Alright ... I finally had time to play with this but ... didn't work.
I still get stuff like http://www.karinne.net/archive/?bid=6 in my location bar