screwy path after modifying httpd.conf for mod rewrite and multiviews
My paths are incorrect after modifying httpd.conf to allow for mod rewrite and multiviews on my local network server. I haven't modified any paths, yet it's treating my rewrite base as the local-network-root rather than the site-root-directory where the .htaccess rewrite rule is in use.
- local network root
- site1 root-directory<----htaccess in here, tries to rewrite to it's parent directory after httpd.conf modification.
- site2 root-directory
- site3 root-directory
now, I can hack a fix by supplying the "site1 root-directory name" to the rewrite rule in the .htaccess, but this presents a problem because I have to remove this before uploading to my online version, that difference is going to produce a serious nightmare for thousands of relative links.
there are (3) instances of "AllowOverride None" in httpd.conf, I changed each as follows:
1st: AllowOverride AuthConfig FileInfo Indexes Limit Options=All,MultiViews
2nd: AllowOverride AuthConfig FileInfo Indexes Limit Options=All,MultiViews
3rd: AllowOverride AuthConfig FileInfo Indexes Limit Options MultiViews
and here's the .htaccess for rewriting:
RewriteRule ^topic/(.*)/$ search.php?topic=$1 [L]
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)