PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3028
Location: United Kingdom

PostPosted: Mon May 31, 2010 3:04 pm Reply with quote Back to top

I've recently converted a static HTML website to RavenNuke and I am trying to redirect all HTML pages to the corresponding page in RN, using a 301 Redirect in the .htaccess. Unfortunately this appears to be creating an Internal Server Error.

This is an example of the lines I am trying to add:

Code:
Redirect 301 /old/oldpage.html http://www.mydomain.com/modules.php?name=News&file=article&sid=6


Does anybody have any idea what I am doing wrong? Confused

Thanks in advance

jakec
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3028
Location: United Kingdom

PostPosted: Mon May 31, 2010 11:45 pm Reply with quote Back to top

I figured out what was causing the server error. There was a space in one of the filenames and when I removed that redirect the page and redirects started working correctly. Very Happy
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 410

PostPosted: Tue Jun 01, 2010 1:00 pm Reply with quote Back to top

Quote:
There was a space in one of the filenames and when I removed that redirect the page and redirects started working correctly


This is a really important issue. Lots of people dont activate space option when they use an editor(I use Notepad2) and they start creating lots of spaces. Hmm. Thanks for posting this so programmers, webmasters and others realize about blank spaces.
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3028
Location: United Kingdom

PostPosted: Tue Jun 01, 2010 1:03 pm Reply with quote Back to top

Well it was actually a blank space in the filename of a PDF file, so it was supposed to be there and not something added by mistake. All my editing is done using Notepad++.
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3028
Location: United Kingdom

PostPosted: Tue Jun 01, 2010 1:07 pm Reply with quote Back to top

You need to add quotes around filenames with spaces.

eg.
Code:
redirect 301 "/old page.htm"  http://www.mydomain.com/modules.php?name=News&file=article&sid=6
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum