Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Old 01-02-2010, 03:02 AM mod rewrite
Ultra Talker

Posts: 254
Trades: 0
hi

i am using a cms which requires mod_rewrite to be enabled for seo urls

in the wamp that i use in my local machine in the httpd.conf file i have this line and removed the comment
LoadModule rewrite_module modules/mod_rewrite.so

when i view the phpinfo i can see that mod_rewrite is on in the Loaded Modules

i am guessing that my hosting might not allow to edit the httpd.conf file so i tried adding the following to the .htaccess which is in the root directory

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

and uploaded the .htaccess file and when i viewed the phpinfo i do not see mod_rewrite for my webserver

also on my server i would be installing the cms in a separate folder after the root directory, so i guess the .htaccess file should be
Options +FollowSymLinks
RewriteEngine On
RewriteBase /foldername


how do i go about enabling mod_rewrite in the .htaccess file as i might not be able to edit httpd.conf

please advice.

thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-03-2010, 08:31 AM Re: mod rewrite
Extreme Talker

Posts: 167
Name: Jilesh
Trades: 0
You will have to write the below mentioned code in your .htaccess file and also make sure that the ownership of the file should be user:user and also the permission to the file is 755.

RewriteEngine On
RewriteBase /
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
thewebhostingdi is offline
Reply With Quote
View Public Profile
 
Old 01-03-2010, 09:27 AM Re: mod rewrite
Defies a Status

Posts: 1,606
Trades: 0
The first thing I would try is commenting out the RewriteBase / line.
#RewriteBase /

That solves your problem on localhost and I have yet to find a nix account where it did not work also. I am sure there must be a reason why it is there but I have not found it yet.

If you do need it on the server the syntax should be RewriteBase /dirname/

Note ther trailing /
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mod rewrite
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38019 seconds with 12 queries