•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 397,884 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,635 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser:
Views: 2902 | Replies: 2
![]() |
•
•
Join Date: Nov 2003
Location: Portland, Oregon
Posts: 67
Reputation:
Rep Power: 5
Solved Threads: 1
I am stumped. Can't get the following to work. Basically all it is suppose to do is if some calls a hello.html file it should grab the hello.shtml file.
RewriteEngine On
RewriteBase /
RewriteRule ^(.*).shtml$ /$1.html
So far all i get is 404 errors. This rewrite is placed in a .htaccess.
Thanks ahead of time
KUB356
RewriteEngine On
RewriteBase /
RewriteRule ^(.*).shtml$ /$1.html
So far all i get is 404 errors. This rewrite is placed in a .htaccess.
Thanks ahead of time
KUB356
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,881
Reputation:
Rep Power: 32
Solved Threads: 108
It should be like this:
If all you want to do is change the .shtml extension to .html
If all you want to do is change the .shtml extension to .html
RewriteEngine on RewriteRule ^(.*).shtml$ $1.html [L]
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,881
Reputation:
Rep Power: 32
Solved Threads: 108
I know it's been quite awhile since this was posted. But I'm just curious if you were able to get it working?
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Linux Servers and Apache Marketplace
•
•
•
•
apple bbc cd cellphone choose code computer core debian dell desktop development drivers enterprise fedora fiji games gentoo gpl hardware ibm infrastructure install kernel laptop linux marketing microsoft mobile news novell open open source openoffice operating os palm preinstall red hat rhel security server source sun system ubuntu unix vista web windows
- changing the .php extension and Apache mod_rewrite question (PHP)
- mod_rewrite question. (Web Developers' Lounge)
- vBulletin mod_rewrite question? (Website Reviews)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: help with cgi
- Next Thread: Statistics tracker?



Linear Mode