Results 1 to 10 of 10
-
9th Jun 2012, 03:49 AM #1OPMemberWebsite's:
imageditings.com shimory.com uniquerelease.comHow 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
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
-
9th Jun 2012, 04:12 AM #2MemberWebsite's:
ImageUpload.ca DownloadTorrent.ca CapitalBank.ca Back-links.caJust 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..)
-
9th Jun 2012, 04:34 AM #3OPMemberWebsite's:
imageditings.com shimory.com uniquerelease.com
-
9th Jun 2012, 05:59 AM #4Member
Did you uncomment modrewrite module from httpd.conf ?
find in httpd.conf and uncomment this
LoadModule rewrite_module modules/mod_rewrite.so
</FilesMatch>
and add this
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
restart apache
service httpd restart
-
9th Jun 2012, 06:17 AM #5OPMemberWebsite's:
imageditings.com shimory.com uniquerelease.com
-
9th Jun 2012, 07:36 PM #6Member
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.
-
10th Jun 2012, 12:03 AM #7OPMemberWebsite's:
imageditings.com shimory.com uniquerelease.com
-
10th Jun 2012, 07:30 AM #8Member
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>
-
10th Jun 2012, 09:07 AM #9OPMemberWebsite's:
imageditings.com shimory.com uniquerelease.com
-
10th Jun 2012, 02:54 PM #10Member
Thanks, glade the issue fix now.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Need Help] vBSEO URL Rewrite
By MWMaster in forum vBulletinReplies: 1Last Post: 2nd Jan 2012, 11:32 PM -
Need Help - Running php as apache module instead of php-cgi on kloxo
By Enigmatic in forum Technical Help Desk SupportReplies: 0Last Post: 1st Oct 2011, 09:17 PM -
[WCDDL] Mod Rewrite Help
By DEViANCE in forum Web Application/Script SupportReplies: 1Last Post: 28th Jun 2011, 04:28 PM -
Code Rewrite
By anantgupta in forum Web Application/Script SupportReplies: 6Last Post: 23rd Dec 2010, 03:25 AM -
Apache detected an error in the Rewrite config
By Divvy in forum Server ManagementReplies: 3Last Post: 10th Dec 2010, 06:56 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...