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 |
|
#1
|
||||
|
||||
|
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
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
|
|
#2
|
||||
|
||||
|
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)
|
|
#3
|
||||
|
||||
|
Re: URL Links/Rewrites?
I just put the .htaccess in the root folder right?
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#4
|
||||
|
||||
|
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:
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#5
|
||||
|
||||
|
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
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#6
|
||||
|
||||
|
Re: URL Links/Rewrites?
Sorry? I dont understand Mark. Could you give me an example?
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#7
|
||||
|
||||
|
Re: URL Links/Rewrites?
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#8
|
||||
|
||||
|
Re: URL Links/Rewrites?
I'm sorry but I still have no idea what I need to do to make the re-write work.
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#9
|
||||
|
||||
|
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)
|
|
#10
|
||||
|
||||
|
Re: URL Links/Rewrites?
Quote:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#11
|
||||
|
||||
|
Re: URL Links/Rewrites?
I've added that, but the same problem still.
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#12
|
||||
|
||||
|
Re: URL Links/Rewrites?
So, it's not working at all. I've checked the .htaccess file. Would it be something with my hosts?
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#13
|
||||
|
||||
|
Re: URL Links/Rewrites?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#14
|
||||
|
||||
|
Re: URL Links/Rewrites?
Have now. Still nothing happening though.
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#15
|
||||
|
||||
|
Re: URL Links/Rewrites?
Quote:
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#16
|
|||
|
|||
|
Re: URL Links/Rewrites?
Its not working because jack has no http://www.jackfranklin.co.uk/month.php on his server
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
![]() |