This is a discussion on "URL Links/Rewrites?" within the PHP Forum section. This forum, and the thread "URL Links/Rewrites? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
URL Links/Rewrites?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
URL Links/Rewrites?
Did not know where the best place to put this was so I'll put it here, but please move if needed.
Right now the URLS of Penguin are: single.php?contentid=1 or category.php?category=category or month.php?month=1 When you first use WordPress, it is like that, but you can change it by adding something to the .htaccess file and, I'm presuming that some PHP is involved. Can anyone help me with what to do? I appreciate it is a big task, any help is welcome. Thanks, Jack
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|
|
||||
|
Re: URL Links/Rewrites?
Okay I was going to write a sticky first but I'll give you some tips.
Here's one for the month: RewriteRule ^month/([0-9]+)-[a-zA-Z]$ month.php?id=$1 [L] Which could be accessed via www.example.com/month/2-february The 2 in the url would be passed to month.php making it month.php?id=2. Let me know how you get on.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
I just put the .htaccess in the root folder right?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
Alex, I upload the .htaccess and navigate to http://www.jackfranklin.co.uk/month/2-february and no luck. The htaccess is:
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
You'll need to create the clean URL in the PHP that looks like http://www.jackfranklin.co.uk/month/2-february
|
|
||||
|
Re: URL Links/Rewrites?
Sorry? I dont understand Mark. Could you give me an example?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
|
|
||||
|
Re: URL Links/Rewrites?
I'm sorry but I still have no idea what I need to do to make the re-write work.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
Is that all your htaccess contains? You need to turn on the rewrite engine with this at the top of your htacces:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
Quote:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
I've added that, but the same problem still.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
So, it's not working at all. I've checked the .htaccess file. Would it be something with my hosts?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
Have now. Still nothing happening though.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: URL Links/Rewrites?
Quote:
|
|
||||
|
Re: URL Links/Rewrites?
Its not working because jack has no http://www.jackfranklin.co.uk/month.php on his server
__________________
The Net is Dying | Fan Rage | We are Battlefield heroes - BFH Forum Vanilla Source - Vanilla Help, and mods
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Msie doesn't make my links links.. | delusion | Web Page Design | 7 | Nov 7th, 2007 08:05 |
| PR4 links for sale...links in an excellent position | agent14 | Link Building and Link Sales | 1 | Mar 5th, 2007 21:33 |
| Blured Links (image links) | bruno89 | Web Page Design | 2 | Jul 25th, 2006 14:48 |
| Come on then, Mod-rewrites and 301's | JamieH | Other Programming Languages | 6 | Dec 23rd, 2005 14:47 |
| Different coloured links without modifying links? | Webforumz Staff | Web Page Design | 12 | Aug 29th, 2003 18:48 |