Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

mod_rewrite

Name: Anonymous 2009-09-08 18:26

I'm  looking at some tutorials for mod_rewrite and I am trying to replicate a simple example:

In my .htaccess file I put this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule \.html$ - [T=text/html;charset=utf-8]
RewriteRule ^old\.html$ new.html [R]
</IfModule>


When I access http://mywebsite.host.org/dir/old.html

It redirects me to http://mywebsite.host.org/home/myname/public_html/dir/new.html

Why is this? How do I fix this? I've been looking all over the internet and Google turns up absolutely nothing.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-09-09 1:10

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html



__________________________________
http://bayimg.com/image/aadbjaace.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
My Blog: http://frozenvoid.blogspot.com/
«It doesn't matter how you feel inside, you know. It's what shows up on the surface that counts. »

Name: Anonymous 2009-09-09 2:00

Disregard the invisible teenager's posts

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List