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 URLs
Mattycat
Posted on 22 Oct 2009, 00:01:39

Access: Member
Total Posts: 42
Joined: 2008-06-25

Hi there,

Just want to know about friendly urls. I have got them to work on my website (www.mjd.co.nz/index.php) but the problem is they don't load in my website.

These are the setting for my .htaccess:

Quote:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* news/index.php [L]
#1083
Chris
Posted on 22 Oct 2009, 00:04:45

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

You just need to change the .htaccess code to this then it should work.

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


Also make sure .htaccess is in your main www directory.
#1084
Last edited by Chris at 2009-10-22 00:05:15 Reason:
Mattycat
Posted on 22 Oct 2009, 00:23:51

Access: Member
Total Posts: 42
Joined: 2008-06-25

I change my .htaccess to what you gave me, there is no .htaccess in the news folder - only in my /public_html folder. It has change a little bit but it's not loading the style sheet now and displaying the news/comments twice.

Do you know what's wrong?
#1085
Mattycat
Posted on 22 Oct 2009, 00:26:24

Access: Member
Total Posts: 42
Joined: 2008-06-25

Ok - I got it working now!

The link to my stylesheet was 'css/style.css' so I changed it to '/css/style.css' and it worked properly. And the reason why it was displaying it twice was because I had included it twice haha. My bad.
#1087
Chris
Posted on 22 Oct 2009, 00:26:59

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

View the source of this page

http://www.mjd.co.nz/page/1/0/Welcome-to-N-13-News-3-3.html

Some of your styles/js/images have relative paths, so it's looking for your stylesheet in

http://www.mjd.co.nz/page/1/0/css/styles.css

which obviously isn't there. Change all the paths to absolute.

<link href="http://mjd.co.nz/css/style.css" rel="stylesheet" type="text/css" />

edit: Nevermind you figured it out =)
#1088
Last edited by Chris at 2009-10-22 00:28:07 Reason:
Network-13.com © 2013