MyBB Community Forums

Full Version: htacess rewrite rule help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need some help on what to add to my .htacess file to rewrite a folder path that is visible in the domain url.

I've got domain.com/projects/site/subsite

this is seen in the url.

What I want is

domain.com/site/subsite


the projects folder removed out of the url.

I know this is possible I got SEO plugin activated but that won't help me with this.

The reason why I got a projects folder is so the top level can't be hacked and thus you can't get access to all sites under it.

I tried: http://www.addedbytes.com/articles/for-b...beginners/

Edit: RESOLVED. I'm going to do this an other way that requires no longer this solution.
Perhaps something like this:

RewriteRule domain.com/([a-z0-9]{1,})/([a-z0-9]{1,})$ domain.com/projects/$1/$2 [N,LC]
I get Internal Server Error when I try out that code, here's my htacess:

http://pastebin.com/VTYk7xpu
Anyone?
RewriteRule ^projects/(.*)$ /$1 [L,R=301,QSA]
RewriteEngine On
RewriteRule ^projects/(.*)$ /$1 [L,R=301]
None of these codes work guys. I do appreciate the help though.

I know it is possible but what code is the question.



Edit: RESOLVED. I'm going to do this an other way that requires no longer this solution.