Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
.htaccess redirect 3xx problem
Old 12-05-2007, 02:57 AM .htaccess redirect 3xx problem
javoec's Avatar
Average Talker

Posts: 23
Name: JavieR
Location: Quito, Ecuador
Trades: 0
Hi everyone.

I've added recently permalinks to my website's news. An example is this one: http://slurmed.com/news/2007/11/30
If you go to the link you'll notice that the URL is not actually the one above, but this one: http://slurmed.com/?news&date=2007/11/30
That's because I'm not actually creating that path and page, but I'm using a .htaccess file to redirect the first 'human readable' link to the second one.
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^news/(.+)/(.+)/(.+) http://slurmed.com?news&date=$1/$2/$3 [r,nc]
In the above .htaccess file, first I used Redirection r=301, and later I used only r as you can see. More 3xx redirections over here, and I used this tutorial just in case.

Now, my problem is that when I try to add the link http://slurmed.com/news/2007/11/30 to Digg.com, it says that: "This link does not appear to be a working link. Please check the URL and try again.". This is, I think, because the actual link with the redirection is http://slurmed.com/?news&date=2007/11/30

Previously, Digg let me add the URL: http://slurmed.com/news/2007/12/04 when I was using r=301 (as you can see here), but later, when I tried to add any other of those links, it just don't let me.

Now, if I don't use a 3xx Redirect, like this:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^news/(.+)/(.+)/(.+) http://slurmed.com?news&date=$1/$2/$3 [nc]
The page loads with the http://slurmed.com/news/2007/11/30 URL in the Adress Bar, but the paths of the images, css, includes..... are then wrong and all I see is the same page but without any formatting and links (and I tried to fix it in that way but then the links like '?p=contact' do not work, and I had to change everything...).

Of all this explanation, I would like to know if I need to use a 3xx redirect or not (I read about the 3xx redirects, but I don't know which one could be the best) and if using or not a 3xx redirect has something to to with Digg not allowing me to submit those URLs.

Any other solution or suggestion is very welcome.
Thanks in advance!.
javoec is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to .htaccess redirect 3xx problem
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08567 seconds with 12 queries