hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : mod_rewrite url rewriting.
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

mod_rewrite url rewriting.

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-18-2005, 02:22 PM
lachtan lachtan is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: Prague, Czech Republic (EU)
Posts: 64

mod_rewrite url rewriting.


Hi, i have pages in .php and url look like this:
server.com/index.php?page=some_page

I want some rewrite to rule for this url:
server.com/some_page.html

Can you help me, I`m amateur in rewriting, thanks.

Reply With Quote


Sponsored Links
  #2  
Old 02-18-2005, 02:52 PM
zupanm zupanm is offline
Web Hosting Master
 
Join Date: Dec 2001
Location: NYC, NY
Posts: 798
I'm not quiet sure how you want this to go.. so if a user visits domain.com/some_page.html this will run index.php?page=some_page

RewriteEngine on
RewriteRule ^(.*)\.html$ index.php?page=$1 [C,E=WasHTML:yes]

__________________
Blog your life away
http://photoblog.com

Reply With Quote
  #3  
Old 02-18-2005, 03:14 PM
lachtan lachtan is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: Prague, Czech Republic (EU)
Posts: 64
Thanks much, that work fine, but it`s posible do this without redirect ? This rule redirecting browser to my original page.

__________________
[root@www:~]#

Reply With Quote
Sponsored Links
  #4  
Old 02-18-2005, 03:53 PM
lachtan lachtan is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: Prague, Czech Republic (EU)
Posts: 64
Sory that is ok, i added /index.php and it`s work fine .]] Thanks.

__________________
[root@www:~]#

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Open Source Hosting - Challenges and Opportunities for Service Providers Web Hosting News 2012-12-10 10:33:18
WCIT 2012 and Web Hosting – What Web Hosts Need to Know About the UN and Internet Regulations Web Hosting News 2012-12-06 16:32:42
ProfitBricks Says its New “Next Generation Cloud” Outperforms Amazon, Rackspace Web Hosting News 2012-09-10 16:35:00
Web Host WebHostForASP.net Launches VPS Hosting Service Web Hosting News 2012-06-29 14:52:22
Q&A: Toby Owen on Rackspace's Updated Hybrid Cloud Solution Web Hosting News 2011-11-08 21:31:27


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?