Permalinks … without messing up wordpress links
-
I have created a page in my root directory that pulls information from a separate mySQL database. The page works perfectly when I use the $_GET call from the URL (ie: page.php?id=123 will pull the mySQL query with id “123”).
The URL is sloppy. I tried to use my previous code in the .htaccess:
rewriterule ^([^-]+)-([^&]+)\.html$ /page.php?id=$1&id=$2 [L] rewritecond %{http_host} ^myURL.com [nc] rewriterule ^(.*)$ http://www.myURL.com/$1 [r=301,nc]
When using this on a non-wordpress site, it works fine (myURL.com/Entry_Name-123.html) but with WordPress, it is breaking the WordPress pages.
I want to keep this page.php in the root directory (outside of a wordpress theme) to avoid other problems.
Thoughts?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Permalinks … without messing up wordpress links’ is closed to new replies.