Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Friendly URL showing 404 error
1 2
Sallyc
Posted on 21 Apr 2011, 13:46:59

Access: Member
Total Posts: 61
Joined: 2011-02-25

Hi Gosain,

Below is what Chris did. I hope it helps you:

In Options > System > Friendly URLs, I made sure it was enabled and used the following settings

Code:
File extension: .php
Prefix: /news/
Directory filename: index.php


The .htaccess file in your /htdocs/spyglasshill/ directory contains the following code

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php [L]

And the final thing I did was edit your /htdocs/spyglasshill/index.php file, the css & javascript includes at the top of the file, I changed their path from a relative to an absolute path by prefixing the path with a / at the beginning. For example I changed this

Code:
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />


To this

Code:
<link rel="stylesheet" href="/css/nivo-slider.css" type="text/css" media="screen" />


As I said everything as far as I can see seems to be working as expected, if you run into any problems let me know.
#3438
1 2
Network-13.com © 2013