Jump to content

Simple Mod Rewrite


johnsmith153

Recommended Posts

I am learning mod rewrites and finding it difficult where to start.

 

If someone can show me sample code for the following, I think that will help:

 

(1) Simple redirect when they enter www.site.com/view.html to view the page on the server: www.site.com/pages/view.php

 

(2) Simple redirect like 1 but to append a variable. So they enter www.site.com/jim-brown and I want it to use www.site.com/profile.php?nm=jim-brown

 

I know most people will say I need to learn it myself but this will help me start.

Link to comment
https://forums.phpfreaks.com/topic/244280-simple-mod-rewrite/
Share on other sites

That's exactly what the problem is (thousands of tutorials). Have you even read my post at all or just trying to bump up your post count figure?

are you married to Pocahontas!?!?

That's exactly what the problem is (thousands of tutorials). Have you even read my post at all or just trying to bump up your post count figure?

don't disrespect, thorpe has a point

Link to comment
https://forums.phpfreaks.com/topic/244280-simple-mod-rewrite/#findComment-1255104
Share on other sites

Actually no, I have spent many hours and I'm still struggling on this.

 

The only thing lazy is thorpe's spelling ('where' in this, and many other examples in most of his other posts).

 

Having a dig at me now? Nice.

 

I am well aware that my spelling and grammar are not the best, lucky I'm not a writer.

 

This still changes nothing about the fact that the information you are asking us to provide would be covered in any basic mod_rewrite tutorial. Do you really want us to publish another one just for you?

Link to comment
https://forums.phpfreaks.com/topic/244280-simple-mod-rewrite/#findComment-1255123
Share on other sites

i meant to say that simple rewrite tutorials are not in abundance,

point 1 of the OP first post is in abundancy

and here is an example

http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

enjoy

i'd appreciate a link to a tut on a simple url rewrite, if anyone has one.

best regards

Link to comment
https://forums.phpfreaks.com/topic/244280-simple-mod-rewrite/#findComment-1255173
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.