Question:
How do I edit the .htaccess file to replace /index.php or /index.php/ with just a single slash character?
2011-05-14 19:21:03 UTC
I need help with editing my htaccess file so that a single slash shows in the browser url instead of /index.php or /index.php/....Also if someone can please provide me with the link where i can access htaccess tutorial materials...I just dont seem to get the legitimate online tutorial...Thanks in advance
Three answers:
Robin T
2011-05-15 22:46:35 UTC
To tell Apache to look for 'index.php' when the url ends with just a slash, add this line to your .htaccess file:

DirectoryIndex index.php



Note though that it won't rewrite the URL when the link specifically includes the file name 'index.php' (i.e.: it won't remove the 'index.php' part, it will just "run" index.php if no file name is specified).
?
2016-12-04 12:29:10 UTC
If I’m no longer flawed there’s a blond character on the 1st episode of Samurai Champloo. you understand, the single with the three stripes Hakama…. ^^ The Daikan’s son…. Yeah… lively Away did no longer have blond character. Doraemon additionally ^^v
Dasun Costa
2011-05-15 01:28:13 UTC
javascriptkit.com/howto/htaccess.shtml


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...