404 error

53 views
Skip to first unread message

Sunita Barve

unread,
Nov 19, 2020, 8:03:35 AM11/19/20
to SubjectsPlus
We installed subjectplus successfully on ubuntu server.

After creating a guide if we click on the guide we get error as shown below in screenshot.

Can anyone help to sort out this error.

charlesbr...@gmail.com

unread,
Nov 19, 2020, 9:06:00 AM11/19/20
to SubjectsPlus
Hello,

Did you configure the .htaccess file under the subjects directory to handle the 'sp' in the url?


Charles

Sunita Barve

unread,
Nov 19, 2020, 11:43:10 AM11/19/20
to subjec...@googlegroups.com
Can u pl. tell me what exactly to be added in .htaccess file?

reg


Sunita Barve

--
You received this message because you are subscribed to a topic in the Google Groups "SubjectsPlus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subjectsplus/m0MuCUFjGBQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subjectsplus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subjectsplus/a226de71-a515-4a54-9139-39d65ecf77c8n%40googlegroups.com.


--
Sunita Barve, Ph. D.
Senior Technical Officer
National Chemical Laboratory
Dr, Homi Bhaba Road
Pune 411008, INDIA
Email :sunit...@gmail.com

charlesbr...@gmail.com

unread,
Nov 19, 2020, 11:47:40 AM11/19/20
to SubjectsPlus
Try this:


# Pretty URLs -- Uncomment to use

RewriteEngine On
RewriteBase /sp/subjects/

RewriteCond %{QUERY_STRING} letter=By%20Department [NC]
RewriteRule (.*) /subjects/staff.php?letter=Departments [R=301,L]

RewriteCond %{QUERY_STRING} letter=Subject%20Librarians%20A-Z [NC]
RewriteRule (.*) /subjects/staff.php?letter=Subject\ Librarians [R=302,L]

RewriteRule ^staff/([^/*]+)/?$ staff_details.php?name=$1 [L]
RewriteRule ^profile/?([a-zA-Z0-9\[\]\.()+|_-]+)$ staff_details.php?name=$1 [L]
RewriteRule ^([^/\.]+)/?$ guide.php?subject=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ guide.php?subject=$1&source=$2 [L]

RewriteRule ^([^/\.]+)/?$ guide.php?subject=$1 [L]

ErrorDocument 404 /sp/subjects/blank-404.php

Rakesh Kumar

unread,
Nov 20, 2020, 1:09:09 PM11/20/20
to subjec...@googlegroups.com
Hello Ma'am
Kindly share your sp url

Best wishes
राकेश कुमार
Rakesh Kumar
Senior Associate Library
Nava Nalanda Central Library
Thapar Institute of Engineering & Technology
Patiala – 147004, PB, India


--
You received this message because you are subscribed to the Google Groups "SubjectsPlus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subjectsplus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subjectsplus/fd158024-a90a-41e5-a3ea-ec68ddc6aa2fn%40googlegroups.com.

Sunita Barve

unread,
Nov 23, 2020, 1:11:14 AM11/23/20
to SubjectsPlus
Tried this but still the same error.

What else need to be checked. Pl. let me know.

reg

Sunita Barve

charlesbr...@gmail.com

unread,
Nov 23, 2020, 10:26:35 AM11/23/20
to SubjectsPlus
Hi Sunita, 

I'm sorry to hear you're experiencing difficulty with the installation process. It seems as if it may be an apache server configuration issue. If you could please send me the apache.conf or vhost file via email to my work address that would be great. It's best not to post that information in a public forum. 

If possible can you send your server configuration files to cg...@miami.edu

Thanks,
Charles

charlesbr...@gmail.com

unread,
Nov 25, 2020, 10:04:13 AM11/25/20
to SubjectsPlus
Hello,

Thanks for sending the conf files.

Two ideas:

1. Is mod_rewrite enabled on your server? if it's not, then please set "User URL Rewrites" to false.

Screen Shot 2020-11-25 at 10.01.27 AM.png

I say this because the subject guide page can be accessed via: http://krclib.ncl.res.in/sp/subjects/guide.php?subject=chem




2. Try this htaccess

# Pretty URLs -- Uncomment to use

RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^([^\.]+)$ $1.php [NC,L]
#RewriteBase /subjectsplus/subjects/

RewriteBase /subjects/

RewriteCond %{QUERY_STRING} letter=By%20Department [NC]
RewriteRule (.*) /subjects/staff.php?letter=Departments [R=301,L]

RewriteCond %{QUERY_STRING} letter=Subject%20Librarians%20A-Z [NC]
RewriteRule (.*) /subjects/staff.php?letter=Subject\ Librarians [R=302,L]

#RewriteRule ^profile/([^/\.]+)/?$ staff_details.php?name=$1 [L]
RewriteRule ^staff/([^/*]+)/?$ staff_details.php?name=$1 [L]
RewriteRule ^profile/?([a-zA-Z0-9\[\]\.()+|_-]+)$ staff_details.php?name=$1 [L]
RewriteRule ^([^/\.]+)/?$ guide.php?subject=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ guide.php?subject=$1&source=$2 [L]

RewriteRule ^([^/\.]+)/?$ guide.php?subject=$1 [L]

ErrorDocument 404 /subjects/blank-404.php

Reply all
Reply to author
Forward
0 new messages