1
Hasanibrahim
about .htaccess

Hello ,

i have changed my .htaccess file before 2 weeks ago for changing " modules/newbb " to "forum" ; you can check it below

le="color: #000000"><?php RewriteEngine on RewriteRule ^forum/([a-z]+)/([0-9]+)(/(.+))? modules/newbb/seo.php?seoOp=$1&seoArg=$2&seoOther=$4&%{QUERY_STRING} [L] RewriteRule ^forum(.*)$ modules/newbb$1 [L]


it worked and now i tried it for some new modules but when i change anything on this .htaccess file, site shows "internal error" page.

i changed mainfile.php it's only about .htaccess file.

i'm trying to do that
le="color: #000000"><?php RewriteEngine on RewriteRule ^forum/([a-z]+)/([0-9]+)(/(.+))? modules/newbb/seo.php?seoOp=$1&seoArg=$2&seoOther=$4&%{QUERY_STRING} [L] RewriteRule ^forum(.*)$ modules/newbb$1 [L] RewriteRule ^anketler/(.*)$ /modules/xoopspoll/$1 [L] RewriteRule ^makaleler/(.*)$ /modules/AMS/$1 [L] RewriteRule ^iletisim/(.*)$ /modules/contact/$1 [L] RewriteRule ^sozluk/(.*)$ /modules/lexicon/$1 [L] RewriteRule ^ayarlar/(.*)$ /modules/profile/$1 [L]


thank you

2
ghia
Re: about .htaccess
  • 2010/8/23 23:00

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


If the forum rule is working should then the next rules not be analoguous?
Eg
le="color: #000000"><?php RewriteRule ^anketler(.*)$ modules/xoopspoll$1 [L]

3
Hasanibrahim
Re: about .htaccess

@ghia,

when i add something or any letter to .htaccess, i'm having internal server error. or when i delete forum rule, i'm having that error,too.


4
playsome
Re: about .htaccess
  • 2010/8/25 19:42

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hello,

you could try the xoRewriteModule hack HERE

It works well at removing /modules/ and renaming modules like newbb to forum, etc

It does not rewrite other parts of the URL however so you would still have index.php?article=7, etc

You can see it working on My Site where I have rewritten all module names.

Who's Online

738 user(s) are online (678 user(s) are browsing Support Forums)


Members: 0


Guests: 738


more...

Donat-O-Meter

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

Latest GitHub Commits