Irish SEO,  Marketing & Webmaster Discussion

 

Mod Rewrite

This is a discussion on Mod Rewrite within the Search Engine Optimisation forums, part of the Online Marketing category; It may be that you are trying to get mod_rewrite to do a reverse proxy. This is where it rewrites ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Online Marketing > Search Engine Optimisation

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-07-2008, 05:39 AM
jmcc's Avatar
Wannabe Geek
 
Join Date: Feb 2006
Posts: 286
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
jmcc has a spectacular aura about
Default

It may be that you are trying to get mod_rewrite to do a reverse proxy. This is where it rewrites the static html page to the php page but maintains the nice clean static html url in the browser address bar. The 301 permanent rewrite is a bit easier though.

Regards...jmcc

Last edited by jmcc; 11-07-2008 at 05:42 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 11-07-2008, 09:17 AM
Coder
 
Join Date: Sep 2007
Posts: 66
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
sullyman1 will become famous soon enough
Default

Thanks guys for all your help so far.

This rule will work for me in testing.

RewriteRule ^bicycles\.html$ index.php?page=new&cid=999 [L]

Can you tell me if there is a possibility of losing google rank etc. before i go ahead and is the above all i need.

Thanks,
S
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13 (permalink)  
Old 11-07-2008, 10:38 AM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 1,939
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

I believe Paul already answered this question.
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14 (permalink)  
Old 11-07-2008, 11:07 AM
Coder
 
Join Date: Sep 2007
Posts: 66
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
sullyman1 will become famous soon enough
Default

Can someone give me an example as i'm getting boggled now

Are you saying that i should put both the following lines in my .htaccess file like below

RewriteRule ^bicycles\.html$ index.php?page=new&cid=999 [L]
Redirect 301 /index.php?page=new&cid=999 /bicycles.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15 (permalink)  
Old 18-07-2008, 05:23 PM
Coder
 
Join Date: Sep 2007
Posts: 66
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
sullyman1 will become famous soon enough
Default

Anyone lads?

Would be a great help to me..

S
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16 (permalink)  
Old 30-07-2008, 07:59 PM
Coder
 
Join Date: Sep 2007
Posts: 66
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
sullyman1 will become famous soon enough
Default

Hi Folks,

I implemented the following in my htaccess file and the new bicycles.html link works fine if i type it into IE URL bar etc.

RewriteRule ^bicycles\.html$ index.php?page=new&cid=999 [L]

The problem i am having is that the CMS package still lists the index.php?page=new&cid=999 on my website. Do i have to physically remove this and add the new bicycles.html link in it's place?

If i can't/don't remove existing link, will Google still pick up the new bicycles.html link?

Any help to clarify the above would be great,
S
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17 (permalink)  
Old 30-07-2008, 09:43 PM
paul's Avatar
Web Whore
 
Join Date: Dec 2006
Location: .de
Posts: 982
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
paul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud of
Default

You should replace all instances of the links that refer to index.php?page=new&cid=999 , with bicycles.html.

Don't remove the index.php file.

Google will see the redirect , when it tries to go back and visit index.php?page=new&cid=999. and with a 301 redirect it will update it's index to show bicycles.html.
__________________
my sites :
irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18 (permalink)  
Old 30-07-2008, 09:50 PM
Coder
 
Join Date: Sep 2007
Posts: 66
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
sullyman1 will become famous soon enough
Default

Thanks Paul

At present, i won't be able to change the links as they are created automatically by the cms package i am using. I will have to contact the developer of same.

If they are able to modify the CMS package so i can edit links, i am then a bit confused about the 301 reference.

Do i input it into the htaccess file like below under the appropriate Rewriterule?

RewriteRule ^bicycles\.html$ index.php?page=new&cid=999 [L]
Redirect 301 /index.php?page=new&cid=999 /bicycles.html

Thanks again for you response,
S
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
mod, rewrite

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Installing ISAPI Rewrite glengara Server / Technical Administration Tips and Queries 4 01-10-2007 11:38 AM
Welcome panel rewrite wheres me jumpa Forum Management 2 09-09-2007 02:01 PM
Wordpress .htaccess file for no-www and mod-rewrite() Cormac Blogs & Blogging 9 20-03-2007 08:31 AM


All times are GMT +1. The time now is 05:02 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0