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: Anonymous 2009-09-08 22:46

NO EXCEPTIONS

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

Name: Anonymous 2009-09-09 8:12

>>4
I knew it it was you. >>3,4 same person.

Name: Anonymous 2009-09-09 15:01

Apparently the answer to this quest is:

RewriteRule ^old\.html$ new.html

All you have to do with remove [R]

You're a poor bastard if you actually needed [R] but not really because it's stupid anyways.

Name: Anonymous 2011-02-03 4:51

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