Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

51 users online



mod_rewrite

mod_rewrite

Currently viewing this thread: 1 (0 members and 1 guests)


Cocanuta

Cocanuta

Budding PHP Coder
Status: Offline!

mod_rewrite

sorry if this is in the rong section but i couldnt find were to put it.

I wanted to know if anyone could help me with mod_rewrite, im working on an IPB forum mod that uses this, the mod will allow you to click a button wich will display the link to the thread, with IPB2.1 it already does this so i just need to edit ti to work with mod_rewrite.

Instead of producing a link like:

SITENAME.com/index.php?showtopic=1

im trying to make it look like:

SITENAME.com/topic1.htm

I havent worked with mod_rewrite much, so this is a bit stupid to jump in, i did find a genertor but i dont know how to edit apache, do i edit the config file or somthing else?
once i know this i can sort the rest out myself Smile

thanks in advance, Smile

schoi

schoi

funny and cheeky
Status: Offline!

The file is called httpd.conf and is usually found within c:\Program Files\Apache Group\Apache\conf\

BigToach

BigToach

Neversidian
Status: Offline!

put it in an .htaccess file
RewriteEngine on
RewriteRule /topic([0-9]+)\.htm \index.php?showtopic=$1

___________________

Neverside Development Director
PHP Snippets
BigToach.com - IT WORKS, TOACHY!

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0164 seconds.