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
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 10-20-2009, 11:15 AM
Junior Member
 
Join Date: 10-20-09
Posts: 3
iTrader: 0 / 0%
modrewrite problem after moving hosts

Hi,

I've just moved a site from 1&1 to Heart Internet where is was working file, but now pages such as http://www.dramawales.org.uk/pages/joinus.html aren't working. It's to do with the re-write rules.

The rule would change this url to http://www.dramawales.org.uk/content.php?Page=joinus

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^wcp/.*$ - [PT]
RewriteRule ^pages/(.*)/(.*)/(.*).html$ content.php?Page=$3&Parent=$2&Root=$1 [NC]
RewriteRule ^pages/(.*)/(.*).html$ content.php?Page=$2&Parent=$1 [NC]
RewriteRule ^pages/(.*).html$ content.php?Page=$1 [NC]
RewriteRule ^(.*).html$ $1.php [NC]

As i say, it was working, perhaps isn't the best code but it worked, now it doesn't.

Any ideas?
Thanks,
Ben
 
Reply With Quote
  #2 (permalink)  
Old 10-20-2009, 03:36 PM
ScriptMan's Avatar
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 10,095
iTrader: 4 / 100%
I am getting a network password box all across your URLs are you sure the rewrite is your problem?
__________________
SEO does not mean Spam Everywhere Online
Scriptman's Playhouse || Ramblings from an old man
2013 resolution: Don't feed trolls
ScriptMan
 
Reply With Quote
  #3 (permalink)  
Old 10-21-2009, 12:55 AM
Junior Member
 
Join Date: 10-20-09
Posts: 3
iTrader: 0 / 0%
The password is only on there as a temporary measure for a few days while the site is populated with content.
 
Reply With Quote
  #4 (permalink)  
Old 10-21-2009, 01:18 AM
Junior Member
 
Join Date: 10-20-09
Posts: 3
iTrader: 0 / 0%
Sorted

For future reference:

RewriteRule ^(.*).html$ $1.php [NC]

Was causing the issue, the code now looks like:


RewriteRule ^wcp/.*$ - [PT]
RewriteRule ^pages/(.*)/(.*)/(.*).html$ content.php??Page=$3&Parent=$2&Root=$1 [NC]
RewriteRule ^pages/(.*)/(.*).html$ content.php?Page=$2&Parent=$1 [NC]
RewriteRule ^pages/(.*).html$ content.php?Page=$1 [NC]
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
some people fire their hosts, some hosts fire me... spacefem Web Hosting Forum 15 02-18-2008 01:36 AM
Moving, So I'm Out For a While waffles Forum Lobby 22 07-01-2007 12:31 PM
Will moving hosts affect my search engine position? Angel69 SEO Forum 12 10-11-2006 08:45 PM
Moving a name from uk2.net - Please help!!! G10 Domain Name Forum 8 04-18-2005 04:54 PM


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


All times are GMT -7. The time now is 01:58 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.