Results 1 to 4 of 4
Threaded View
-
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.
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
themaCreator - create posts from...
Version 3.48 released. Open older version (or...