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 Problem with friendly URL
Nevil
Posted on 09 Feb 2010, 01:21:14

Access: Member
Total Posts: 32
Joined: 2010-01-08

Hy,

The url rewriting works fine but links doesn't open in the page where the N-13 is include but in a blank page. Is there a way to open direct links into the same page not in a new blank one ?

Thanks.
#1831
Chris
Posted on 09 Feb 2010, 15:59:27

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

What you need to do is change the .htaccess file so that it redirects to the page you have the script included into. For example this is how the .htaccess looks by default

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


Change this to whichever page you have the script included into like so

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


Then place this in your main public_html directory.

The news hopefully then work properly.
#1833
Nevil
Posted on 09 Feb 2010, 16:29:49

Access: Member
Total Posts: 32
Joined: 2010-01-08

Hi,

thanks for your reply.

When I change the .htaccess file, the server sent an "500 internal server error".

Do I have to change the system option too (remove the prefix friendly url) ?

#1835
Chris
Posted on 09 Feb 2010, 16:32:06

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

You shouldn't have to change any other settings.

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


/index.php refers to the file public_html/index.php, make sure this file exists or change it to whichever file it is you're including your news into.
#1836
Nevil
Posted on 12 Feb 2010, 21:43:35

Access: Member
Total Posts: 32
Joined: 2010-01-08

Sorry, I come again with my Url friendly problem.

The blog is included in that page:

http://mydomain/nevil-blog-accueil.php

If the url friendly option is off, everything works perfectly

But when url friendly is on, when i want to open the second page of the news, it opens like that:

http://mydomain/news/0/2/index.html

without any css.

And other example, when I want to open a link from my rss feed, it opens the same way:

http://mydomain/news/9/0/Storyboard-pour-Nintendo-DS.html.

I hope you would find a solution.

Thanks a lot.
#1857
Last edited by Nevil at 2010-02-12 22:14:38 Reason:
Chris
Posted on 12 Feb 2010, 21:54:21

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

change

Code:
<link href="nevil-blog.css" rel="stylesheet" type="text/css" />


to

Code:
<link href="/nevil-blog.css" rel="stylesheet" type="text/css" />
#1858
Nevil
Posted on 12 Feb 2010, 22:11:09

Access: Member
Total Posts: 32
Joined: 2010-01-08

I have to say that you're the best :)

It works perfectly now.


Thanks a lot !!
#1859
Network-13.com © 2013