Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-19-2009, 02:41 AM
Alexandro Alexandro is offline
Contributing Member
 
Join Date: 09-16-06
Posts: 87
iTrader: 0 / 0%
Apache mode_r

I need to make a redirect from an old url to a new url. The problem is that both urls have a space :

The problem is that apache doesn't recognize space as %20 or escaped with "\"

For example the
Code:
http:\\protocols eib.php
I want to redirect to
Code:
http:\\automation protocols.php
.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 02-20-2009, 09:44 AM
Izzmo's Avatar
Izzmo Izzmo is offline
v7n Mentor
 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
Interesting, you would think that would work. Does it give you a 500 error?
 
Reply With Quote
  #3  
Old 02-20-2009, 09:55 AM
Alexandro Alexandro is offline
Contributing Member
 
Join Date: 09-16-06
Posts: 87
iTrader: 0 / 0%
yes, 500 error.

I tried something like this:

RewriteEngine On
RewriteRule ^Firewall/VPN\ Firewall/firewall-vpn-introduction-1\.php
$/Automation-Computer-Security/computer\ gadgets/computer-security/intranet-vpn\.php [L,R=301]
 
Reply With Quote
  #4  
Old 02-20-2009, 11:25 AM
Capo64 Capo64 is offline
Contributing Member
 
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
"\ " should work.. Try adding this before RewriteEnginge

Options +FollowSymLinks
 
Reply With Quote
  #5  
Old 02-21-2009, 05:37 AM
Alexandro Alexandro is offline
Contributing Member
 
Join Date: 09-16-06
Posts: 87
iTrader: 0 / 0%
thank you all , I resolved the problem \ (escaped) works the problem was that I used Notepad to edit .htaccess and the RewriteRule weren't all on one line.(Notepad wrap the lines)
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this with Apache? RuebenMarley Web Design Lobby 7 10-20-2008 01:02 AM
php and apache livecoder Coding Forum 3 09-06-2007 09:29 PM
Apache Kymberly Web Design Lobby 14 08-29-2007 09:39 PM
Apache Help Lotmr Dedicated Servers 3 11-26-2003 04:59 PM
Upgrade Apache Limit Coding Forum 8 11-01-2003 07:31 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:33 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC