Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    abesselink is offline Official Member
    Join Date
    Oct 2008
    Posts
    13

    Default Sweetcron and .htaccess

    I have a Linux hosting and would like to install Sweetcron, a lifestream app. It looks like all the requirements are met, but my question is re: the .htaccess file. Will I be able to use this file to allow the app to work properly from a subfolder (per the Sweetcron installation instructions)?

    Options +FollowSymLinks
    RewriteEngine On

    RewriteBase /[subfolder name]/

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

    Thanks -

    Allan

  2. #2
    nickh is offline Administrator
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    142

    Default

    G'day, Allan. Those Apache directives should work perfectly in an htaccess-file. If you have any problems, feel free to post'em here or open a support ticket.

    Cheers,
    Nick
    Nick Hoffman
    Software Developer
    SoftCom Inc.

  3. #3
    abesselink is offline Official Member
    Join Date
    Oct 2008
    Posts
    13

    Default No luck

    I utilized the .htaccess file above ... so if my domain is www.abc.com, and sweetcron is in a subfolder, I used -

    Options +FollowSymLinks
    RewriteEngine On

    RewriteBase /sweetcron/

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

    I received a 500 Internal Server Error.

    How do I correct this problem? Is there something about the absolute vs relative url that is causing the issue? Please advise.

    Allan

  4. #4
    abesselink is offline Official Member
    Join Date
    Oct 2008
    Posts
    13

    Default Sweetcron and .htaccess

    If my domain is www.abc.com and Sweetcron is in subfolder /sweetcron, this is what my .htaccess file looks like:

    Options +FollowSymLinks
    RewriteEngine On

    RewriteBase /sweetcron/

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

    When I go to www.abc.com/sweetcron/, I get a 500 Internal Server Error.

    Suggestions? Is this an issue of absolute vs relative urls? Please advise.

  5. #5
    abesselink is offline Official Member
    Join Date
    Oct 2008
    Posts
    13

    Unhappy Sweetcron/.htaccess error

    If my domain is "www.abc.com", and Sweetcron is in subfolder /sweetcron, then this is the .htaccess file I used:

    Options +FollowSymLinks
    RewriteEngine On

    RewriteBase /sweetcron/

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

    When I go to "www.abc.com/sweetcron/", all I am getting is a 500 Internal Server Error.

    Suggestions? Is this an issue of absolute vs relative urls? Please advise.

    Allan

  6. #6
    nickh is offline Administrator
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    142

    Default

    Try removing the trailing slash from the RewriteBase, like this:
    RewriteBase /sweetcron

    If that doesn't help, let me know in this thread or via PM which domain this problem's affecting, and I'll take a look.
    -Nick
    Nick Hoffman
    Software Developer
    SoftCom Inc.

  7. #7
    abesselink is offline Official Member
    Join Date
    Oct 2008
    Posts
    13

    Unhappy No luck

    Tried that option ... with and without the trailing slash. No go.

    Will send you a PM.

    Allan

  8. #8
    nickh is offline Administrator
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    142

    Default

    Thanks for the PM, Allan. I poked around and believe I've solved the problem in the htaccess-file. Give it a whirl and let me know.
    Nick Hoffman
    Software Developer
    SoftCom Inc.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts