@CWDESIGN some are index but others ain't as the example above www.mysite.com/mynew.html/ becomes www.mysite.com/mynew/ an is not an index on a folder im trying basically to remove every .html to just the name without having to write every page on the .htaccess file...
@dclardy thats good i have tried that but i need to remove every .html and .php extension and not having to name it something else... basically no file extensions...
Well, the only way I know how to remove the .html and .php extensions is to create a folder and put index.html or index.php inside of that folder. Adding a folder and naming the file index will make it so your page will look like this mysite.com/thisnew without showing the .html or .php extension.
@CWDESIGN yeah thats the original way that works... cause thats the index of the folder but im not trying to make multiple folders just for a page... thats where the .htaccess come's in handy the .htaccess file above renames the the file to which ever name you want like RewriteRule ^most/$ /most.php [L] the url will be www.mysite.com/most/ without having to make or name a folder and put and index on it...
http://mysite.com/thisnew.html rewrite it to http://mysite.com/thisnew
another example
http://css-tricks.com/forums/categories/css
i use the following .htaccess code
is there a way on making this hide all the html extension and not having to include all the page's on the htaccess file .?
Ex.
http://mysite.com/thisnew/index.html = http://mysite.com/thisnew
http://mysite.com/most/index.php = http://mysite.com/most
Here is what I use:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php