I recently switched hosts and migrated several PmWiki based sites in the process.<br><br>On one site, I had the URLs forming as <a href="http://www.site.com/pmwiki.php/Group/Page" target="_blank">http://www.site.com/pmwiki.php/Group/Page</a><br>
<br>Recently I inadvertently deleted my .htaccess file and everything
stopped working on this site. I didn't realise what the problem was
until my hosting provider figured it out for me and put in a new
.htaccess file.<br>
<br>So now my URLs are forming as <a href="http://www.site.com/Group/Page" target="_blank">http://www.site.com/Group/Page</a><br><br>It
looks very nice, but there are a few hard-coded URLs around the site
(in some of my own scripts) which still use the longer form I had
previously.<br>
<br>I've visited the Clean URLs recipe to see what I need to do but
none of the examples reflect what I had and I just can't get my head
around what all those rewrite rules are actually doing.<br><br>I would appreciate some help on this one.<br>
<br>The current .htaccess file looks like this:<br><br># Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.<br>RewriteEngine On<br># Define the rewrite base.<br>RewriteBase /<br># Send requests without parameters to pmwiki.php.<br>
RewriteRule ^$ pmwiki.php [L]<br># Send requests for index.php to pmwiki.php.<br>RewriteRule ^index\.php$ pmwiki.php [L]<br># Send requests to pmwiki.php, appending the query string part.<br>RewriteRule ^([A-Z0-9\xa0-\xff].*)$ pmwiki.php?n=$1 [QSA,L]<br>
<br>I've looked at my backup that I used to move the site and it has a
.htaccess file but it is empty. Is that what I need to make this
happen?? Seems odd to me.<br clear="all"><br>-- <br>Allister