Home RewriteCond for directoryname to directoryname.php
Reply: 0

RewriteCond for directoryname to directoryname.php

pms
1#
pms Published in 2017-12-07 15:38:53Z

In a folder "Products" we have many folders with an index.php file in it. Is it possible to create a RewriteCond in .htaccess to rewrite a directory to a file with the same name as the directory+.php?

example: Products/Folder_directory1/

should rewrite to: Products/Folder_directory1.php

But also /Folder_different_name/ should point to Folder_different_name.php

Thanks for your help!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.299208 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO