1
fredski
TinyD htaccess code
  • 2005/4/14 11:26

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I'm using the following htaccess code for my tind modules, is there a way to get a permanent redirect on the rewritten files, so that any previously indexed pages will go to the new ones and not index the old ones?

php_flag register_globals Off

RewriteEngine on

RewriteRule 
^rewrite/tc_(.*).htmlindex.php?id=$[L]
RewriteRule ^rewrite/(.*.html?)$ rewrite.php?wrap=$[L]
RewriteRule ^rewrite/index.php(.*)$ index.php$[L]
RewriteRule ^rewrite/comment_new.php(.*)$ comment_new.php$[L]
RewriteRule ^rewrite/comment_post.php(.*)$ comment_post.php$[L]
RewriteRule ^rewrite/comment_reply.php(.*)$ comment_reply.php$[L]
RewriteRule ^rewrite/comment_edit.php(.*)$ comment_edit.php$[L]
RewriteRule ^rewrite/comment_delete.php(.*)$ comment_delete.php$[L]
RewriteRule ^rewrite/(.*)$ content/$[L]


Any help would be appreciated, Thanks

2
fredski
Re: TinyD htaccess code
  • 2005/4/14 12:59

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


would also like it to name the html to either the page title or the wrapped html name.

would this be possible? I'm sure you gurus out there would know this easy.

I know I can change
RewriteRule ^rewrite/tc_(.*).htmlindex.php?id=$[L]


to


RewriteRule ^rewrite/[b]topic-of-content[/b]_(.*).htmlindex.php?id=$[L]


but if the content varies over a few topics then it's not that usefull.

main thing though is the permanent redirect..

3
fredski
Re: TinyD htaccess code
  • 2005/4/15 9:30

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


hmm changing the rewrite tc_* didn't work, something was still looking for the tc_


come on guys and galls, show me some of your brilliance :)

Login

Who's Online

90 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 90


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits