Forum Moderators: phranque

Message Too Old, No Replies

.htaccess rewriting url

invision power board subforum url

         

dhil

10:06 am on Jan 25, 2008 (gmt 0)

10+ Year Member



Hello guys,

I dont know how i am gonna explain this .. but let me try anyway ..

normally you have a forum with some Categories

now is it possible to make a mod, within the same license / database / ACP

to make a directory for each category

lets say you have 3 categories like chitchat, support , sales

right now it would be

http://directory.example.com/index.php?showforum=xyz
http://directory.example.com/index.php?showforum=xyz
http://directory.example.com/index.php?showforum=xyz

is it possible to solve this with .htaccess?

i am using invision powerboard

[edited by: jdMorgan at 4:27 pm (utc) on Jan. 26, 2008]
[edit reason] examplified [/edit]

jdMorgan

4:32 pm on Jan 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Assuming that invision supports it --a question better asked in an invision users forum-- and that your DNS and server support wildcard subdomains, the following could be done with .htaccess and mod_rewrite:

http://chat.example.com/index.php -----> /index.php?showforum=chat
http://aupport.example.com/index.php --> /index.php?showforum=support
http://sales.example.com/index.php ----> /index.php?showforum=sales

Where the displayed/requested URL is shown on the left, and the 'real' server filepath and query are shown on the right.

Jim

dhil

6:49 pm on Jan 27, 2008 (gmt 0)

10+ Year Member



can u please give a small what to put in .htaccess ..

i hope this soloution will give a better SEO as well

jdMorgan

4:39 pm on Jan 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try a search for rewriting subdomains to subdirectories [google.com], and see the the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim