PDA

View Full Version : URL re write


leeshindig
06-14-2006, 10:24 PM
Hi


Ive installed Newtopica in ... /financialnews/index.php


But I cant get the URL rewrite feature to show my category when I click.. just get 404 error message...

Its fine without the URL re write selected..


any ideas..

David
06-15-2006, 03:52 AM
Well, we would need to know about you server, and your htaccess file.
Have you had a successful install that uses mod rewrite on this server in the past?

leeshindig
06-15-2006, 08:31 AM
no I havent used it yet...

Ive checked with my host.. ht access is enabed on the site...

I tried adding my route folder to the error 404 code in ht access code see below..



## Newstopica - Apache Server Settings ##
#################################################

# Protect files and directories
<Files ~ "(\.(inc|inc.php|tpl|sql)|backup|files|images|inclu de|lang|libs(/.+)?|temp(/.+)?|templates(/.+)?)$">
Order deny,allow
Deny from all
</Files>

# Disable directory browsing
Options -Indexes

# Follow symbolic links in this directory
Options +FollowSymLinks

# Override PHP settings that cannot be changed at runtime


# Customized error messages
# ( If you are running in a subfolder please add it, example: "directory/index.php?httpstatus=404" )
ErrorDocument 404 financialnews/index.php?httpstatus=404


# Set the default handler
DirectoryIndex index.php

# URL rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On

## Details Link Page Rewrite##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*)detail/link-(.*).html$ detail.php [QSA,NC]

## Pagination Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*)page-(\d+)\.html$ $1/?p=$2 [PT,NC]

## Category redirect
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php [QSA,L]

</IfModule>

leeshindig
06-15-2006, 01:22 PM
sorted it..

my host hadnt enabled ht access properly

the dumb schmuk