Ok, I've searched and read and searched and read but I can't get this to work. I'm trying to rewrite http://www.domain.com/index.php?REQ=[COLOR="black"]KEYWORD[/COLOR] Code (markup): to http://www.domain.com/REQ/[COLOR="Black"]KEYWORD[/COLOR] Code (markup): My .htaccess looks like this: Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^REQ/(.*)/$ index.php?REQ=$1 [L] Code (markup): What am I doing wrong???
I have no idea but what I want to do is also a problem for me: http://domain.com to redirect to http://www.domain.com/folder/500.cgi but I also want this: http://www.domain.com to redirect to http://www.domain.com/folder/500.cgi Anyone know how to do this in .htaccess? Col
You aren't rewriting you're just redirecting... redirect 301 /index.html http://www.domain.com/folder/500.cgi Code (markup): Change to 302 if the redirect is just temporary...also make sure you have a blank index.html file in the root directory.
Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^REQ/([^.]+)$ index.php?REQ=$1 [L]
Still isn't working...forgot to mention its running on a subdomain I don't know if that changes anything.
Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^wacko\.html$ index.php [L] if xxx.domain.com/wacko.html doesn't show the index page, mess with the first line. If taking that out doesn't make it work, ask your web host.