[pmwiki-users] I need help with clean URLs
Tony Colley
frodo1990 at yahoo.com
Mon Aug 14 21:06:28 CDT 2006
If you put pmwiki.php at $DOCROOT rather than $DOCROOT/pmwiki, shouldn't the .htaccess file be:
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# Define the rewrite base.
RewriteBase /
# Send requests without parameters to pmwiki.php.
RewriteRule ^$ pmwiki.php [L]
# Send requests for index.php to pmwiki.php.
RewriteRule ^index.php$ pmwiki.php [L]
# Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([^/a-z].*) pmwiki.php?n=$1 [QSA,L]
as opposed to having "pmwiki/pmwiki.php" in the three RewriteRule lines?
info at theburroughsproject.com wrote: Hello again. I've talked with tech support at godaddy.com, and they
claim that the mod_rewrite should work for what I'm doing, and have
assured me that there are no restrictions to mod_rewrite whatsoever. So
I just wanted to check with you one last time, to make absolutely sure
that I'm doing this correctly. This is what I'm doing:
In my root document folder I have only two items: one folder named
"pmwiki", and one .htaccess
file. This is an exact copy of what's in my .htaccess file:
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# The rewrite base will be the document root.
RewriteBase /
# Send requests without parameters to pmwiki.php.
RewriteRule ^$ pmwiki/pmwiki.php [L]
# Send requests for index.php to pmwiki.php.
RewriteRule ^index\.php$ pmwiki/pmwiki.php [L]
# Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([^/a-z].*) pmwiki/pmwiki.php?n=$1 [QSA,L]
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Whenever a theory appears to you as the only possible one,
take this as a sign that you have neither understood the theory
nor the problem which it was intended to solve. -- Karl Popper
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
HOME PAGE: www.awcfamily.com
I have no control over anything that appears after this sentence.
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060814/8ad19bbd/attachment.html
More information about the pmwiki-users
mailing list