Hi to all,
I have a site live on the windows server but the htaccess is not working it give me following error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
I want to show the url like this
Actual url
[noparse]http://www.example.com/categories/index.php?cat=eyes[/noparse]
I want to show above url like this
[noparse]www.example.com/categories/eyes[/noparse]
My htaccess file is currently site is in subfolder
rewriteengine on
Options +FollowSymlinks
RewriteBase /test_php/
rewriterule ^index.php$ index.php [L]
rewriterule ^categories/([a-zA-Z0-9_-]+)$ categories/index.php?cat=$1
thanks in advance.
IIS does not use .htaccess. If you are on IIS7 then you can use the native url rewriting to get there. That is typically handled in a web.config file.
dklynn
3
Wyatt,
Good info! Where does web.config reside? Content identical to Apache’s mod_rewrite directives? Link to M$ info about M$_rewrite? THANKS!
Regards,
DK
All that is very well documented on IIS.net and numerous other sites, no need to repeat it here.
thanks for the reply.
I have found the web.config file but how i can write a rule to convert this dynamic url
http://www.example.com/categories/index.php?cat=eyes
to
http://www.example.com/categories/eyes
please keep in mind that “eyes” will be dynamic mean in second url may be lips instead of eyes.
thanks