animedude123
04-02-2009, 01:06 AM
Hey,
So currently I have this as my .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ read.php?link=$1
My goal is to take this page: http://www.mysite.com/hehe
and have it show as: http://www.mysite.com/read.php?link=hehe to the server
My current file doesn't work though. I tried changing
RewriteRule ^(.*)$ read.php?link=$1
to
RewriteRule ^_(.*)$ read.php?link=$1
This works.
Now though the link needs to be http://www.mysite.com/_hehe (which I don't really want).
Can anyone help me get this working the way I want? (Also so when a user does like /index.php it won't try to send it to the server as read.php?link=index.php)
Thanks for any help!
So currently I have this as my .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ read.php?link=$1
My goal is to take this page: http://www.mysite.com/hehe
and have it show as: http://www.mysite.com/read.php?link=hehe to the server
My current file doesn't work though. I tried changing
RewriteRule ^(.*)$ read.php?link=$1
to
RewriteRule ^_(.*)$ read.php?link=$1
This works.
Now though the link needs to be http://www.mysite.com/_hehe (which I don't really want).
Can anyone help me get this working the way I want? (Also so when a user does like /index.php it won't try to send it to the server as read.php?link=index.php)
Thanks for any help!