nsForum logo

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Unable To Use .htaccess For Mod_rewrite
rudraraj
post Aug 3 2009, 11:14 PM
Post #1





Group: Verified NS Member
Posts: 2
Joined: 20-January 09
Member No.: 3,548



Hi,

I have hosting account with NetworkSolutions. But unfortunately, i am unable to use the .htaccess . I created the .htaccess file for "mod_rewrite" . But, its not working. I received email from NS-Support that, they said, I have to create php.ini to turn on the mod-rewrite in the server.

I am confused. Please help me any one if you have experience about it.

--Thanks,

Rudraraj
Go to the top of the page
 
+Quote Post
Corey
post Aug 4 2009, 12:25 PM
Post #2


Network Solutions Technical Support


Group: Administrators
Posts: 61
Joined: 23-June 08
Member No.: 1,316



mod_rewrite is enabled by default on our UNIX platform. You can use it within .htaccess by using syntax similiar to the following

CODE
RewriteEngine on
RewriteRule ^index.htm$ /newlocation.html

The first part is the page you are rewriting from: Example(index.htm) the ending is where the rewrite will go(newlocation.html).
Go to the top of the page
 
+Quote Post
DesiVanrintel
post Sep 9 2009, 04:10 AM
Post #3





Group: Verified NS Member
Posts: 1
Joined: 9-September 09
Member No.: 5,178



Hi Rudraraj,

This is my .htaccess, and it works perfect.

SetEnv APPLICATION_ENV development
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2009 Time is now: 21st November 2009 - 11:42 PM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates