Jump to content

dereke55

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dereke55's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ok, so this is what I'm trying to do: test.domainname.com rewrites to /test/ directory I have that working fine Now what I want to do is rewrite the following test.domainname.com/group/123/ rewrite to /test/group.php?id=123 test.domainname.com/group/123/456 rewrite to /test/group.php?id=123&sort=456 This is what I have so far RewriteCond %{HTTP_HOST} ^test.domainname\.com [NC] RewriteRule !^domainname/.*$ /test%{REQUEST_URI} [L] Any help would be greatly appreciated.
  2. I've read post after post about configuring apache and php to create "clean" urls and I'm having some problems. Here's my setup: Apache/2.0.55 PHP/5.1.2 Server running on port 8080 What I want to do: I want the url: localhost:8080/news/1 to point to script: news.php with 1 as the parameter instead of: news.php?id=1 What works now: [a href=\"http://localhost:8080/news.php?id=1\" target=\"_blank\"]http://localhost:8080/news.php?id=1[/a] Problem: [a href=\"http://localhost:8080/news/1\" target=\"_blank\"]http://localhost:8080/news/1[/a] returns back "The requested URL /news/1 was not found on this server." The only changes I made to the httpd.conf are below: The below changes were added to the very end of the file [code] # For PHP 5 do something like this: LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php # Configure the path to php.ini PHPIniDir "C:/php" # Remove extension <Files news>    ForceType application/x-httpd-php </Files> [/code] I added the AcceptPathInfo to line 241 of the file [code] <Directory />     Options FollowSymLinks     AllowOverride All     AcceptPathInfo On </Directory> [/code] I would prefer to use the ForceType method instead of the mod_rewrite method for performance reasons. So if anyone has any suggestions, please let me know. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.