Activity Stream
48,167 MEMBERS
6982 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member
    Website's:
    imageditings.com shimory.com uniquerelease.com

    Default How to rewrite module in apache?

    Guys, im doing testing for my PLG script. Tested on shared hosting + cPanel its working fine.

    But the problem now is when im install apache + php5 without cpanel on my vps, site is working fine but not fully function. I can generate the link but cannot download it, error not found the file.

    My script need to rewrite this:

    Code: 
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^static/(.*) index.php?q=$1
    I create .htaccess and put the code but still no luck. Should i put this code at other place at httpd.conf or etc etc?
    MediaStar Reviewed by MediaStar on . How to rewrite module in apache? Guys, im doing testing for my PLG script. Tested on shared hosting + cPanel its working fine. But the problem now is when im install apache + php5 without cpanel on my vps, site is working fine but not fully function. I can generate the link but cannot download it, error not found the file. My script need to rewrite this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^static/(.*) index.php?q=$1 Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    ImageUpload.ca DownloadTorrent.ca CapitalBank.ca Back-links.ca
    Just a query.. Is it godaddy hosting?
    They have pretty strict .htaccess rewrite restrictions.
    (They let you use it within the root directory of your hosting account only.)

    Or try

    RewriteRule ^([^/]+)/?$ index.php?q=$1
    (ensure that 'q' is really the value your lookign for..)


    50% Off Coupon: KWWHhalfoff || Backlink Affiliate Program: http://earn.back-links.ca

  4.     
    #3
    Member
    Website's:
    imageditings.com shimory.com uniquerelease.com
    Quote Originally Posted by HostImage.ca View Post
    Just a query.. Is it godaddy hosting?
    They have pretty strict .htaccess rewrite restrictions.
    (They let you use it within the root directory of your hosting account only.)

    Or try

    RewriteRule ^([^/]+)/?$ index.php?q=$1
    (ensure that 'q' is really the value your lookign for..)
    Its working fine with shared hosting, the problem now is with my vps (not godaddy)

    will try your code

    updated: still no luck

  5.     
    #4
    Member
    Did you uncomment modrewrite module from httpd.conf ?

    find in httpd.conf and uncomment this

    LoadModule rewrite_module modules/mod_rewrite.so
    then find this in same file

    </FilesMatch>
    comment this whole tag by adding # in start, that start from <FilesMatch "^\.ht">

    and add this

    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>

    restart apache

    service httpd restart

  6.     
    #5
    Member
    Website's:
    imageditings.com shimory.com uniquerelease.com
    Quote Originally Posted by feronso View Post
    Did you uncomment modrewrite module from httpd.conf ?

    find in httpd.conf and uncomment this



    then find this in same file



    comment this whole tag by adding # in start, that start from <FilesMatch "^\.ht">

    and add this




    restart apache


    Cannot find </FilesMatch> mate but got this one


  7.     
    #6
    Member
    That's fine,

    try remove this ~ . save and restart apache. and then check.

    i don't know your website nature, directories etc. so i don't have exact idea about which directory it seen ?

    this is usually a directory or miss place string issue.

  8.     
    #7
    Member
    Website's:
    imageditings.com shimory.com uniquerelease.com
    Quote Originally Posted by feronso View Post
    That's fine,

    try remove this ~ . save and restart apache. and then check.

    i don't know your website nature, directories etc. so i don't have exact idea about which directory it seen ?

    this is usually a directory or miss place string issue.
    Still same, this is my directory

    Code: 
    /home/public_html/DOMAIN.com/public

  9.     
    #8
    Member
    What kind of website its ? any CMS or custom application ?

    make sure directory setting exactly pointed. similar to this settings

    <Directory "/home/public_html/DOMAIN.com/public">

    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

    </Directory>

  10.     
    #9
    Member
    Website's:
    imageditings.com shimory.com uniquerelease.com
    Quote Originally Posted by feronso View Post
    What kind of website its ? any CMS or custom application ?

    make sure directory setting exactly pointed. similar to this settings
    Whoa, you are the hero man. Working now thanks

  11.     
    #10
    Member
    Thanks, glade the issue fix now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Need Help] vBSEO URL Rewrite
    By MWMaster in forum vBulletin
    Replies: 1
    Last Post: 2nd Jan 2012, 11:32 PM
  2. Need Help - Running php as apache module instead of php-cgi on kloxo
    By Enigmatic in forum Technical Help Desk Support
    Replies: 0
    Last Post: 1st Oct 2011, 09:17 PM
  3. [WCDDL] Mod Rewrite Help
    By DEViANCE in forum Web Application/Script Support
    Replies: 1
    Last Post: 28th Jun 2011, 04:28 PM
  4. Code Rewrite
    By anantgupta in forum Web Application/Script Support
    Replies: 6
    Last Post: 23rd Dec 2010, 03:25 AM
  5. Apache detected an error in the Rewrite config
    By Divvy in forum Server Management
    Replies: 3
    Last Post: 10th Dec 2010, 06:56 PM

Tags for this Thread

BE SOCIAL