NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page htaccess help needed

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 01-25-2011, 10:21 PM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: May 2009
Posts: 1,412
lothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to behold
 



htaccess help needed


This .htaccess works on my linux shared host, but not my freebsd dedicated server. FreeBSD server is freebsd 8.1 with php5.3.5, mysql5.1.54, apache-2.2.17, and php5-extensions installed. And yes, mod_rewrite is loaded and working already

Any help is appreciated
????: NamePros.com http://www.namepros.com/programming/698742-htaccess-help-needed.html

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
Hostgator Coupons | Godaddy Coupons | Namecheap Coupons | Name.com Coupons | DynaDot Coupons | BigRock coupons
Domain Censorship Internet censorship issues
lothos is offline   Reply With Quote
Old 01-25-2011, 11:47 PM   #2 (permalink)
NamePros Member
 
un4given[MAD]'s Avatar
Join Date: Aug 2008
Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
un4given[MAD] is on a distinguished road
 



The first thing which comes into my mind is that you should try to disable multiviews by adding following code into your .htaccess file:
Code:
Options -MultiViews

RewriteEngine On
...
Actually, multiviews might be already disabled by the apache configuration and therefore may not be the cause of the problem, but I think it's worth to try.
__________________
Tired playing Freecell, Klondike or Spider? Discover 800 solitaire games at SolitairesUnlimited.com and play'em all!
un4given[MAD] is offline   Reply With Quote
Old 01-25-2011, 11:52 PM THREAD STARTER               #3 (permalink)
Senior Member
Join Date: May 2009
Posts: 1,412
lothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to behold
 



Originally Posted by un4given[MAD] View Post
The first thing which comes into my mind is that you should try to disable multiviews by adding following code into your .htaccess file:
????: NamePros.com http://www.namepros.com/showthread.php?t=698742
Code:
Options -MultiViews

RewriteEngine On
...
Actually, multiviews might be already disabled by the apache configuration and therefore may not be the cause of the problem, but I think it's worth to try.
I tried your suggestion but it had no effect.

Any other suggestions? I appreciate the help
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
Hostgator Coupons | Godaddy Coupons | Namecheap Coupons | Name.com Coupons | DynaDot Coupons | BigRock coupons
Domain Censorship Internet censorship issues
lothos is offline   Reply With Quote
Old 01-26-2011, 04:09 AM   #4 (permalink)
Forum Moderator
 
enlytend's Avatar
Join Date: Aug 2006
Location: USA
Posts: 2,152
enlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond repute
 



Cancer Survivorship
Try
Options +FollowSymLinks
In the beginning of the file.

If it's working without it on the shared host, it's probably because it's enabled at the server level.
__________________
Enlytend Solutions - Internet marketing and web development
Was my advice helpful? Please consider a small donation to the National Canine Cancer Foundation - a tax deductible 501(c)(3)that directly funds cancer research
enlytend is offline   Reply With Quote
Old 01-26-2011, 04:11 AM   #5 (permalink)
NamePros Member
 
un4given[MAD]'s Avatar
Join Date: Aug 2008
Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
un4given[MAD] is on a distinguished road
 



Okay... How exactly is it not working?
Is it not working as expected or you just receive '500 internal server error' message?

You may also enable logging for rewrites (see options RewriteLog and RewriteLogLevel in httpd.conf or in vhosts.conf) and analyze logs to locate the problem.
__________________
Tired playing Freecell, Klondike or Spider? Discover 800 solitaire games at SolitairesUnlimited.com and play'em all!
un4given[MAD] is offline   Reply With Quote
Old 01-26-2011, 12:10 PM THREAD STARTER               #6 (permalink)
Senior Member
Join Date: May 2009
Posts: 1,412
lothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to behold
 



Originally Posted by enlytend View Post
Try
Options +FollowSymLinks
In the beginning of the file.

If it's working without it on the shared host, it's probably because it's enabled at the server level.
I've tried it with that also, and I believe it's enabled in my config.
????: NamePros.com http://www.namepros.com/showthread.php?t=698742

Originally Posted by un4given[MAD] View Post
Okay... How exactly is it not working?
Is it not working as expected or you just receive '500 internal server error' message?

You may also enable logging for rewrites (see options RewriteLog and RewriteLogLevel in httpd.conf or in vhosts.conf) and analyze logs to locate the problem.
It's not working as expected.

This is for a coupon site, like a retailmenot clone. The index.php loads and works fine. When you click on a coupon, it is supposed to send you to bestbuy.com or where ever, but instead it loads the main index.php. When you click on a store name, it's supposed to open a second page on my site listing all the coupons for that store, but instead it loads the index.php. /admin is supposed to be the admin area, but once again it loads the main index.php site.

I enabled error logging last night, I will try to copy and paste some of it.[COLOR="Silver"]



Thanks!
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
Hostgator Coupons | Godaddy Coupons | Namecheap Coupons | Name.com Coupons | DynaDot Coupons | BigRock coupons
Domain Censorship Internet censorship issues
Last edited by lothos; 01-26-2011 at 01:44 PM.
lothos is offline   Reply With Quote
Old 01-26-2011, 12:10 PM   #7 (permalink)
NamePros Member
 
un4given[MAD]'s Avatar
Join Date: Aug 2008
Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
un4given[MAD] is on a distinguished road
 



Is it possible to view source code of index.php? You can send it to me via PM, if you don't want to publish it here.
__________________
Tired playing Freecell, Klondike or Spider? Discover 800 solitaire games at SolitairesUnlimited.com and play'em all!
un4given[MAD] is offline   Reply With Quote
Old 01-26-2011, 01:45 PM THREAD STARTER               #8 (permalink)
Senior Member
Join Date: May 2009
Posts: 1,412
lothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to behold
 



Originally Posted by un4given[MAD] View Post
Is it possible to view source code of index.php? You can send it to me via PM, if you don't want to publish it here.
I will send over the main /index.php and also the coupon/index.php via PM.
????: NamePros.com http://www.namepros.com/showthread.php?t=698742

I reallly appreciate the help

---------- Post added at 03:45 PM ---------- Previous post was at 02:12 PM ----------

un4given[MAD],

The problem wasn't with the htaccess.

Thank you for pointing me in the right direction, the problem was with the codeignitor configuration files. Your suggestion pointed me in the right direction and I was able to figure it out

Positive rep added.

Thanks
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
Hostgator Coupons | Godaddy Coupons | Namecheap Coupons | Name.com Coupons | DynaDot Coupons | BigRock coupons
Domain Censorship Internet censorship issues
lothos is offline   Reply With Quote
Old 01-26-2011, 05:34 PM   #9 (permalink)
NamePros Member
 
un4given[MAD]'s Avatar
Join Date: Aug 2008
Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
un4given[MAD] is on a distinguished road
 



Originally Posted by lothos View Post
Thanks
You're welcome! I was happy to help
__________________
Tired playing Freecell, Klondike or Spider? Discover 800 solitaire games at SolitairesUnlimited.com and play'em all!
un4given[MAD] is offline   Reply With Quote
Old 02-09-2011, 01:33 AM   #10 (permalink)
New Member
Join Date: Aug 2010
Location: US
Posts: 21
stevemack is an unknown quantity at this point
 



some thing new i have picked up from this thread. i am little bit confused with the rewrite codes but i really enjoyed the thread.
stevemack is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
100+ TOP NOTCH .in + .co.in Domains - Taking Offers Toni ccTLD Domains For Sale 29 03-08-2011 03:07 AM
[ask] HtAccess rewrite for clean url xrvel Programming 1 12-23-2007 11:29 PM
htaccess question slobizman Web Design Discussion 0 07-03-2006 08:47 AM
htaccess Questions-- Help please Richieboy67 Programming 9 07-02-2006 09:34 AM
SEO Friendly Links without htaccess? dhscott Programming 2 06-03-2006 04:51 PM

 
All times are GMT -7. The time now is 02:43 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger