need help with htaccess

by madbob
0 replies
i need to create a redirect to a non existing page.

here is my code

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^index2\.php#!(.*)$ /index2\.php/$1 [R=301,L]
</IfModule>

this would be my url ttp://sub.domain.com/index2.php#!time/
i would like to redirect avery request with "#!string" to new url (same page) - ttp://sub.domain.com/index2.php/time/

i know that the code above needs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
to be added but it doesnt even makes the redirect to 404. the url doesnt change.

thanks
#htaccess

Trending Topics