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

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$[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
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$[L]

RewriteRule ^anketler/(.*)$ /modules/xoopspoll/$[L]

RewriteRule ^makaleler/(.*)$ /modules/AMS/$[L]

RewriteRule ^iletisim/(.*)$ /modules/contact/$[L]

RewriteRule ^sozluk/(.*)$ /modules/lexicon/$[L]

RewriteRule ^ayarlar/(.*)$ /modules/profile/$[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
RewriteRule ^anketler(.*)$ modules/xoopspoll$[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.

Login

Who's Online

322 user(s) are online (189 user(s) are browsing Support Forums)


Members: 0


Guests: 322


more...

Donat-O-Meter

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

Latest GitHub Commits