Results 1 to 4 of 4
-
9th Feb 2012, 03:37 PM #1OPBanned
Php,MYSQL and htaccess
hello people,
me needing some help here.i have built my own custom coded CMS for blogging.i could have used the same old wordpress ,themes,but the intention was to learn the php,sql system. the platform has been developed and its working as it should.but i`m unable to modify the url structure
current structure =Code:site.com/view.php?id=3
Code:sitecom/view/3.html
i can make the urlCode:site.com/view.php?id=3&slug=seo-optimized
now my question is ,is it possible to
make the url patter
Code:site.com/view.php?id=3
Code:sitecom/view/3.html
Code:sitecom/view/3/article-name-from-slug-field.html
EDIT1:I have gone through the system of wordpress ,but there are so many functions,its complicating the thing even moresceneguy Reviewed by sceneguy on . Php,MYSQL and htaccess hello people, me needing some help here.i have built my own custom coded CMS for blogging.i could have used the same old wordpress ,themes,but the intention was to learn the php,sql system. the platform has been developed and its working as it should.but i`m unable to modify the url structure current structure = site.com/view.php?id=3Using htaccess and much researching, i modified it to sitecom/view/3.htmlthis one variable(so as to speak - id) is working well.now i wanna include some seo Rating: 5
-
9th Feb 2012, 04:28 PM #2Member
paste here your current htaccess rewrite rules
-
9th Feb 2012, 04:35 PM #3Member
Something like this will do it for you:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule view/([0-9]+)/(.+)\.html$ view.php?id=$1&slug=$2
</IfModule>
-
9th Feb 2012, 04:41 PM #4OPBanned
thanks for help deliteblogger. i`ll try it and get back to you. Wont the server load be increased if it requires
1.int ID to match
2.slug STRING to match?
Can i not match ID field and then redirect it to the respetive field
Code:sitecom/view/3/article-name-from-slug-field-for-post-id-3.html
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
MYSQL Error while Import via MYSQL Dumper (Error
By desibreaker in forum Server ManagementReplies: 10Last Post: 5th Aug 2011, 07:26 PM -
Vb Seo .htaccess Help
By sunnyx12x21x in forum vBulletinReplies: 9Last Post: 17th Jul 2011, 11:25 AM -
.htaccess Help Please
By l0calh0st in forum Web Development AreaReplies: 3Last Post: 4th Apr 2011, 03:29 PM -
Help with .htaccess
By woja in forum vBulletinReplies: 1Last Post: 25th Jan 2011, 11:11 PM -
.htaccess Help
By ICanSurfNow in forum Technical Help Desk SupportReplies: 14Last Post: 19th Feb 2010, 10:18 AM
themaCreator - create posts from...
Version 3.17 released. Open older version (or...