phpns SEF url's not correctly forming
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
phpns |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I am having trouble with SEF's. When I goto the url that has phpns included, say
www.mysite.com
I can see my new fine. If I click on a SEF url, the link tries to go to
www.mysite.
Of course this does not work.
If I manually change the 1 in the url to a slash (/), I can load the article, but only if I have an .htaccess file that includes:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php?a=$1 [QSA]
</IfModule>
If I remove the .htaccess file, I cannot get any article to display.
I'm not sure if there is something in phpns causing this, or some other server problem. I'm running phpns on a red hat virtual machine. Everything else on my server seems to be working fine.
This is driving me crazy. I've tried editing the .htaccess file. I've tried editing shownews.php, and I can't seem to make the "1" go away. I can't find anything in my apache config that would be causing this. Any ideas ???
I believe your problem with the '1' and the '/' has been fixed in the latest bzr commit, but I'll experiment more. Further, the reason you can't load the article without the .htaccess file, is that it is needed for search engine friendly urls. The "mod_rewrite" module is loaded with that file.
The fix will be available in 2.2.2, but if you need it immediately, you can clone the latest bzr branch and replace your 'shownews.php' with the current revision. If you don't know how to do this, I'll be happy to help. Just post a question (requesting the file) in: https:/ /answers. launchpad. net/phpns