Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Simple mod_rewrite question
Old 07-30-2012, 10:28 AM Simple mod_rewrite question
Novice Talker

Posts: 12
Trades: 0
Hi Guy's,

Ive been working on this all night and im hoping someone can help here!

Below is my .htaccess file, what im trying to achieve is that certain pages within my site are dynamically created, so for example my urls are looking like this:

localhost/SkinProject/Wrinkles

The problem is some of my standard pages (no dynamic) are displayed like this - localhost/SkinProject/contact.php - as you can see they have an extension of .php at the end.

What i would ideally like is to have this url end in .php - localhost/SkinProject/Wrinkles.php

Below is my code, any help would be fab!
Regards
Tom

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteRule ^([A-Z*a-z*0-9*-]+)/?$ SkinProject/page.php?seo_link=$1 [L]
tomupton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-30-2012, 01:02 PM Re: Simple mod_rewrite question
chrishirst's Avatar
Defies a Status

Posts: 44,052
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
What i would ideally like is to have this url end in .php
Why???
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-30-2012, 01:03 PM Re: Simple mod_rewrite question
Novice Talker

Posts: 12
Trades: 0
Hi there,

If figured thats the best way too when the home page (index.php) displays with the .php extension

Regards

Tom
tomupton is offline
Reply With Quote
View Public Profile
 
Old 07-30-2012, 03:32 PM Re: Simple mod_rewrite question
chrishirst's Avatar
Defies a Status

Posts: 44,052
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Completely and utterly untrue, infact you would be better NOT having the index page appearing in the URL for your site root.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-30-2012, 05:59 PM Re: Simple mod_rewrite question
Novice Talker

Posts: 12
Trades: 0
Thanks for your advice Chris,

What would you suggest being the best thing to do then in this situation?

i.e. with the htaccess file?

Regards
TOm
tomupton is offline
Reply With Quote
View Public Profile
 
Old 07-31-2012, 09:44 AM Re: Simple mod_rewrite question
chrishirst's Avatar
Defies a Status

Posts: 44,052
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://tycoontalk.freelancer.com/web...ml#post1049773
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Simple mod_rewrite question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18715 seconds with 11 queries