LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2015, 03:46 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,762

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587

Quote:
but for the cat.php if i visit www.site.com/y/2005
it loads the page but not correctly and without css
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.site.com/y/styles/common.css
I don't know what cat.php does, but the RewriteRule is to rewrite URI /cat.php?id=<string>&cid=<number> to /<string>/<number>, so rewrites like http://www.site.com/y/styles/common.css (meaning http://www.site.com/cat.php?id=y&cid=styles/common.css), where the 2nd argument is not numeric, should not happen
I doubt, but if you want them to happen too, change the 2nd Rule accordingly:
Code:
RewriteRule ^([^/]+)/(.+)$ /cat.php?t=$1&cid=$2 [L]
 
1 members found this post helpful.
Old 05-20-2015, 01:57 AM   #17
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 407

Original Poster
Rep: Reputation: 32
Ok ok . change something in cat.php about .css files and now works properly.

Thank you very much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
500 Internal Server Error Nagesh sheregar Linux - General 2 08-14-2009 01:52 AM
Getting 500 Internal Server Error !! Deepaks Linux - Server 0 04-11-2009 06:49 AM
500 Internal Server Error shahz Red Hat 9 03-31-2009 03:05 AM
500 Internal server error fa_khan50 Linux - Newbie 0 01-02-2008 12:13 AM
500 Internal Server Error bship Linux - Software 5 01-19-2007 04:48 PM


All times are GMT -5. The time now is 08:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration