htaccess transform contact.php in contact?
I have tried this to transform index.html to index but is not working

RewriteRule ^index\.html$ http://localhost/Seaweb/index/ [R=301,L]

any help apreciated

Recommended Answers

All 2 Replies

What is the name of the actual file, I guess index.html ?

RewriteRule ^index$ index.html [R=301,L]

So when you now use index in the URL, index.html will be called.

yes this is what I am looking for and furthermore this method can be aplied for the rest of the links as well

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.