Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 2259 | Replies: 1
![]() |
•
•
Join Date: Jan 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
hi,
i wish to include the forum session in my site
i want the exact procedure and steps to be followed for the mod rewrite of urls.
the urls should describe the domain name followed by the forum name and then by the forum number that has been posted.
i.e. it should look like
http://www.site.com/forum/forum-1.(php/htm anyhting)
http://www.site.com/forum/forum-2.(php/htm anyhting)
etc;
can you please help me...........
i wish to include the forum session in my site
i want the exact procedure and steps to be followed for the mod rewrite of urls.
the urls should describe the domain name followed by the forum name and then by the forum number that has been posted.
i.e. it should look like
http://www.site.com/forum/forum-1.(php/htm anyhting)
http://www.site.com/forum/forum-2.(php/htm anyhting)
etc;
can you please help me...........
Last edited by cscgal : Feb 24th, 2006 at 9:32 pm. Reason: URLs examplified to conform with forum policy
Here's the mod_rewrite I use to forward all things from my old addy to my new one and rerwite everything after the myurl.com portion. Place this in the directives for the virtual site or in .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^youroldsite\.com$
RewriteRule ^(/)(.*) http://yournewsite.com/$2 [R] My Home Away from Home: Yet Another Linux Blog
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode