Results 1 to 4 of 4
-
4th May 2011, 07:19 PM #1OPMemberWebsite's:
bramjlive.comneed help to enable .htaccess in vps
how to enable
Apache mod_rewrite module
.htaccess
with my vps
i have cpanalokpaa Reviewed by okpaa on . need help to enable .htaccess in vps how to enable Apache mod_rewrite module .htaccess with my vps i have cpanal Rating: 5
-
15th May 2011, 10:54 PM #2MemberWebsite's:
undiscoveredPWDS.comWhat is it your trying to achieve?
URL rewriting is usually used to convert data inputs into a clean url eg
mysite.com/showproduct.php?id=1391
to
mysite.com/showproduct/1391
If that's all you want it can be done by simply changing the .htaccess file with the FilesMatch tag. In the example above add:
<FilesMatch "^showproduct$">
ForceType application/x-httpd-php
</FilesMatch>
then in your code put
$expl = explode("/",$_SERVER["REQUEST_URI"]);
$id = $expl[count($expl)-1];
All this should be enabled by defult!
If your wondering why any .htaccess file seems to disappear once you upload it, that's because any file that begins with . in linux is hidden. Its there, just your ftp client cant see it.
-
16th May 2011, 12:17 AM #3MemberWebsite's:
EastsideHosting.com MediaONAIR.com ImgWiz.com cPadmin.net EastsidePCWorks.com HostedTalk.comIf he uses FileZilla it's usually visible automatically.
If he uses another, then there are ways of forcing to see . files by adding -a in a listing properties; or just access cPanel, File Manager 'Enable . files' and there you go.EastsideHosting - (Web Hosting, Proxy Hosting, Reseller Program)
MediaONAIR - (SHOUTcast Servers, ICEcast Servers, Reseller Program)
Server Administrator - (Dedicated Servers, VPS Management, One Time Services)
ImgWiz - (Free Image Hosting)
-
16th May 2011, 11:12 AM #4MemberWebsite's:
Elite.SO Defendos.com Motionite.comLogin into WHM - Click on EasyApache Update - Rebuild Apache, but don't forget to check "Mod Rewrite", Apache will be rebuild including MR.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
should i enable cloudflare?
By ::ALEX:: in forum Webmaster DiscussionReplies: 19Last Post: 12th Jul 2012, 08:04 PM -
how to enable shell_exec
By msk19994 in forum Server ManagementReplies: 17Last Post: 10th Mar 2012, 04:10 PM -
[Hiring] Someone to enable RAR/unRAR on my RL
By kohkindachi in forum Completed TransactionsReplies: 8Last Post: 2nd Nov 2010, 01:22 PM -
How To Enable Mod_Rewrit in VPS?
By Dan.Crew in forum Server ManagementReplies: 4Last Post: 26th Oct 2010, 06:36 AM -
Enable Rep system?
By sewer in forum Webmaster DiscussionReplies: 1Last Post: 2nd Sep 2009, 10:25 PM
themaLeecher - leech and manage...
Version 5.02 released. Open older version (or...