404 error

已查看 53 次
跳至第一个未读帖子

Sunita Barve

未读,
2020年11月19日 08:03:352020/11/19
收件人 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

未读,
2020年11月19日 09:06:002020/11/19
收件人 SubjectsPlus
Hello,

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


Charles

Sunita Barve

未读,
2020年11月19日 11:43:102020/11/19
收件人 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

未读,
2020年11月19日 11:47:402020/11/19
收件人 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

未读,
2020年11月20日 13:09:092020/11/20
收件人 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

未读,
2020年11月23日 01:11:142020/11/23
收件人 SubjectsPlus
Tried this but still the same error.

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

reg

Sunita Barve

charlesbr...@gmail.com

未读,
2020年11月23日 10:26:352020/11/23
收件人 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

未读,
2020年11月25日 10:04:132020/11/25
收件人 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

回复全部
回复作者
转发
0 个新帖子