| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: May 2009
Posts: 1,412
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| | |
| | #2 (permalink) |
| NamePros Member Join Date: Aug 2008 Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
![]() | 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 ...
__________________ Tired playing Freecell, Klondike or Spider? Discover 800 solitaire games at SolitairesUnlimited.com and play'em all! |
| | |
| | THREAD STARTER #3 (permalink) | ||||
| Senior Member Join Date: May 2009
Posts: 1,412
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 | ||||
| | |
| | #4 (permalink) |
| Forum Moderator ![]() Join Date: Aug 2006 Location: USA
Posts: 2,152
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Try Options +FollowSymLinksIn 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 |
| | |
| | #5 (permalink) |
| NamePros Member Join Date: Aug 2008 Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
![]() | 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! |
| | |
| | THREAD STARTER #6 (permalink) | ||||
| Senior Member Join Date: May 2009
Posts: 1,412
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=698742 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.
| ||||
| | |
| | #7 (permalink) |
| NamePros Member Join Date: Aug 2008 Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
![]() | 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! |
| | |
| | THREAD STARTER #8 (permalink) | ||||
| Senior Member Join Date: May 2009
Posts: 1,412
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: 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 | ||||
| | |
| | #9 (permalink) |
| NamePros Member Join Date: Aug 2008 Location: Solar System \ Earth \ Ukraine \ Kiev
Posts: 43
![]() |
__________________ Tired playing Freecell, Klondike or Spider? Discover 800 solitaire games at SolitairesUnlimited.com and play'em all! |
| | |
![]() |
| 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 |