Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule redirection with name change

need instructions

         

bogyvet

12:12 am on Feb 27, 2008 (gmt 0)

10+ Year Member



Well I am using e107 CMS and have problems with indexing so I try RewriteRule but do not know how to implpement these. I am not coder and mine knowledge is not too high.

I have these

RewriteRule ^forum.html /e107_plugins/forum/forum.php

and when I go to www.example.com/forum.html it works

but I need

RewriteCond "if I go to these url=/e107_plugins/forum/forum.php"
RewriteRule ^forum.html /e107_plugins/forum/forum.php

also is it possible to implement same as above

RewriteCond "if I go to these url=e107_plugins/forum/forum_viewforum.php?$1
RewriteRule forum([0-9]*)\.html(.*)$ e107_plugins/forum/forum_viewforum.php?$1

I get example.com/forum25.html, but is it possible to get forum category name like these example.com/rules and regulations

thanks in advance your forum help me a lot !

jdMorgan

3:47 pm on Feb 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm sorry, I don't understand the specifics of this question.

In general, "mapping" from <article_name> to <database_key> requires a scripted solution, either in your page-generation script, or using two scripts, one for page-generation, and another for URL rewriting using mod_rewrite's RewriteMap function. The latter solution requires httpd.conf or conf.d (server-configuration-level) access.

Jim