Re: Where to place rewrite rules?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric,

When I do the following, the rewrite rules don't seem to work.  Where
should I be placing the rewrite rules and what settings should I have
for AllowOverride to stop it from looking for the .htaccess?

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>
<Directory "D:/MSDev/PhotoParata/httpd/htdocs">
	Options SymLinksIfOwnerMatch
    AllowOverride all
    Order allow,deny
    Allow from all
    PhotoParataCfg conf/PhotoParata.conf
</Directory>

RewriteEngine On
RewriteRule ^images/([^/]+)/([^/]+)$ theImage?fldoid=$1&imgoid=$2 [L]
RewriteRule ^images/([^/]+)/([^/]+)/([^/]+)$
theImage?fldoid=$1&imgoid=$2&tn=$3 [L]
RewriteRule ^category/([^/]+)$ index.php?fldoid=$1 [L]
RewriteRule ^category/([^/]+)/i/([^/]+)$ index.php?fldoid=$1&imgoid=$2 [L]
RewriteRule ^category/([^/]+)/p/([\d]*)$ index.php?fldoid=$1&p=$2 [L]
ThreadsPerChild 25
MaxRequestsPerChild  0
ServerName basement
Listen 80
EnableSendfile Off
EnableMMAP Off
Win32DisableAcceptEx
KeepAlive On
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule dir_module modules/mod_dir.so
LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule env_module modules/mod_env.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule alias_module modules/mod_alias.so
PHPIniDir "D:/MSDev/PhotoParata/httpd/conf"
LoadModule php5_module "D:/MSDev/PhotoParata/httpd/modules/php5apache2_2.dll"
LoadModule promenade_module modules/mod_promenade.so
ServerRoot "D:/MSDev/PhotoParata/httpd"
DocumentRoot "D:/MSDev/PhotoParata/httpd/htdocs"
SetEnv TMP "D:/MSDev/PhotoParata/httpd/tmp"
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>
<Directory "D:/MSDev/PhotoParata/httpd/htdocs">
	Options SymLinksIfOwnerMatch
    AllowOverride all
    Order allow,deny
    Allow from all
    PhotoParataCfg conf/PhotoParata.conf
</Directory>

RewriteEngine On
RewriteRule ^images/([^/]+)/([^/]+)$ theImage?fldoid=$1&imgoid=$2 [L]
RewriteRule ^images/([^/]+)/([^/]+)/([^/]+)$ theImage?fldoid=$1&imgoid=$2&tn=$3 [L]	
RewriteRule ^category/([^/]+)$ index.php?fldoid=$1 [L]
RewriteRule ^category/([^/]+)/i/([^/]+)$ index.php?fldoid=$1&imgoid=$2 [L]
RewriteRule ^category/([^/]+)/p/([\d]*)$ index.php?fldoid=$1&p=$2 [L]

<IfModule dir_module>
    DirectoryIndex index.php index.html 
</IfModule>
PhotoParataLicense conf/license.bin
<Location /theImage>
    SetHandler promenadeImages	
</Location>
<Location /grandMarshal>
    SetHandler grandMarshal
</Location>
ErrorLog logs/error.log
LogLevel error
DefaultType text/plain
TypesConfig conf/mime.types
MIMEMagicFile conf/magic
RewriteLog logs/rewrite.log
RewriteLogLevel 0
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux