Important Notice:
Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Can anyone help with Mod_Rewrite? By default all HostNine servers have mod_rewrite and FollowSymlinks enabled. I have setup a .htaccess file but cannot get it to redirect urls with .php extensions.
Here is the .htaccess file I am using: Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^mydomain\.com$ RewriteRule ^(.*) http://www.mydomain.com/$1 [R=301,L] RewriteRule ^detail-([0-9]+)\.html$ detail.php?listing=$1 If someone types mydomain.com mod_rewrite forwards to www.mydomain.com. I want the dynamic links to redirect to links with a .html extension. The rewrite rule above works if someone manually types in the .html extension but no redirect for those who click on the dynamic links. User clicks detail.php?listing=32 (no redirect) If user types detail-31.html (then redirect works) Any ideas how to make dynamic links redirect without typing them? Any help is much appreciated. I have checked this forum as well as many websites on this issue with no success. Thank you, David |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble with htaccess/mod_rewrite | OMT | Shared Web Hosting | 2 | 06-09-2009 02:24 PM |
| mod_rewrite? | Nnyan | Reseller Hosting | 2 | 04-19-2007 08:08 PM |




Linear Mode

