| View previous topic :: View next topic |
| Author |
Message |
Aniblaze Grandmaster Cheater Supreme
Reputation: 138
Joined: 23 Apr 2006 Posts: 1757 Location: The Netherlands
|
Posted: Tue Oct 19, 2010 2:59 pm Post subject: Requesting help from someone who has .htaccess knowledge |
|
|
Namely on how to rewrite URLs. I need the trail http://localhost/tam/ to internally direct to http://localhost/tam/public/ (so the contents of /tam/public/ are show when I go to /tam/). Does anybody have a clue as to how I go about doing this? I've been to http://httpd.apache.org/docs/2.0/misc/rewriteguide.html and attempted a few things, namely:
# In the /tam/.htaccess
| Code: | RewriteEngine on
RewriteBase /tam/
RewriteRule ^public$ public/ [R] |
Fails, it does absolutely nothing. |
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Tue Oct 19, 2010 3:01 pm Post subject: |
|
|
You can do it with PHP, and I have before, I just don't know off of the top of my head.
.HTACCESS varies per server so I think PHP is easier. |
|
| Back to top |
|
 |
Aniblaze Grandmaster Cheater Supreme
Reputation: 138
Joined: 23 Apr 2006 Posts: 1757 Location: The Netherlands
|
Posted: Tue Oct 19, 2010 3:05 pm Post subject: |
|
|
| Cryoma wrote: | You can do it with PHP, and I have before, I just don't know off of the top of my head.
.HTACCESS varies per server so I think PHP is easier. |
I have attempted to do so in PHP at first. But unfortunately I'm using the Zend framework, which makes it a pain to edit because shit is intertwined in such a way that finding the path redirection becomes almost impossible (which ironically, happens in PHP). |
|
| Back to top |
|
 |
|