Hi, I need help for a mod_rewrite. I need to change this http://www.petsfirstaid.org/bleeding.php over to static link If this can be done kindly give me the code for the .htaccess file.
You can use this Options +FollowSymLinks <IfModule mod_rewrite.c> RewriteEngine On RewriteRule bleeding.htm bleeding.php RewriteRule burnsandscalds.htm burnsandscalds.php </IfModule>
This should work. Do you have mode rewrite enabled with your hosting? Check with a phpinfo files <?php phpinfo(); phpinfo(INFO_MODULES); ?>
Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.html$ $1.php [L]
It didn't work. This is the htacess files what needs to be change? # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.html$ $1.php [L] Options +FollowSymLinks <IfModule mod_rewrite.c> RewriteEngine On RewriteRule bleeding.htm bleeding.php RewriteRule burnsandscalds.htm burnsandscalds.php </IfModule> <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName petsfirstaid.org AuthUserFile /home/petsfirs/public_html/_vti_pvt/service.pwd AuthGroupFile /home/petsfirs/public_html/_vti_pvt/service.grp
Can you please replae this code from your .htaccess: Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.html$ $1.php [L] Options +FollowSymLinks <IfModule mod_rewrite.c> RewriteEngine On RewriteRule bleeding.htm bleeding.php RewriteRule burnsandscalds.htm burnsandscalds.php </IfModule> Code (markup): with this: RewriteEngine on RewriteRule ^bleeding.html$ bleeding.php Code (markup): After adding the above lines you should be able to visit: http://www.petsfirstaid.org/bleeding.html Let me know.
I add the code and is this what I was surpose to do? It didn't work. # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* RewriteEngine on RewriteRule ^bleeding.html$ bleeding.php <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName petsfirstaid.org AuthUserFile /home/petsfirs/public_html/_vti_pvt/service.pwd AuthGroupFile /home/petsfirs/public_html/_vti_pvt/service.grp
http://www.petsfirstaid.org/bleeding.html Its working fine for me Isn't this thing what you are looking for?
Options +FollowSymLinks <IfModule mod_rewrite.c> RewriteEngine On RewriteRule bleeding.htm bleeding.php RewriteRule burnsandscalds.htm burnsandscalds.php </IfModule> Hi After adding this code on .htaccess file you have to change your menu with with .htm. It will not automatically change your menu links.