Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.