Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 6 Years, 10 Months ago htacess rewrite rule help
#1
Solved: 6 Years, 10 Months ago
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.
USHOST247, Nuova Webs.
about.me/maxpen | Miscy Networks owner
#2
Solved: 6 Years, 10 Months ago
Perhaps something like this:

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

http://pastebin.com/VTYk7xpu
USHOST247, Nuova Webs.
about.me/maxpen | Miscy Networks owner
#4
Solved: 6 Years, 10 Months ago
Anyone?
USHOST247, Nuova Webs.
about.me/maxpen | Miscy Networks owner
#5
Solved: 6 Years, 10 Months ago
RewriteRule ^projects/(.*)$ /$1 [L,R=301,QSA]
#6
Solved: 6 Years, 10 Months ago
RewriteEngine On
RewriteRule ^projects/(.*)$ /$1 [L,R=301]
#7
Solved: 6 Years, 10 Months ago
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.
USHOST247, Nuova Webs.
about.me/maxpen | Miscy Networks owner


Forum Jump:


Users browsing this thread: 1 Guest(s)