+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 3 of 4

Thread: PHP URL Routing or .htaccess mod rewrite

  1. #1
    meothui
    Guest

    PHP URL Routing or .htaccess mod rewrite

    300.000 Free softwares download here
    I was just wondering, If you want to rewrite the urls on your CMS would you use PHP URL Routing or simply use the .htaccess file?



    Which one is better?
    More Information:
    1. I don't have a full understanding of mod-rewrite and htaccess rewrite rules
    2. htaccess to modify urls, although I needed a a specific PHP script to rewrite the title of urls added by my CMS
    3. For pretty URLs you might use a rule based routing system like mod_rewrite
    4. It is shared hosting and obviously mod-rewrite, etc are working because clean url can be enabled and works properly if you enter to the domain
    5. Todays post will be focused on setting up apache mod rewrite rule to control your url structure and to allow a clean way of routing requests to your controllers

  2. #2
    minhduy20
    Guest

    i think that .htaccess is better because it is binded in apache.
    More Information:
    1. Well I have been using symfony for a while, I have seen the routing engine built is very for building SEO friendly url without knowledge of mod_rewrite or any other technique…
    2. 24 posts - 4 authors - Last post: Jul 11, 2008Mod_rewrite can't fix the problem by itself, since the 'wrong' URL is already defined by your page
    3. htaccess file looks like this: # Turn on URL rewriting RewriteEngine On
    4. [PT]: Pass Through: instructs mod_rewrite to pass the rewritten URL back to Apache for further processing
    5. As I read the Zend Docs about routing I see that an URL (/:module/:controller/:action) gets routed, by default, to the appropriate Controller::Action()

  3. #3
    vodangno1vt
    Guest

    Any other opinions?
    More Information:
    1. First we include the PUR class (PHP URL Routing) and provide it with an array of URLs to function or class/methods and the URL that is currently being called
    2. Not the answer you're looking for? Browse other questions tagged mod-rewrite apache friendly-url
    3. mod_rewrite: url rewriting plus subdomain (wildcard) rewrite at the same time
    4. htaccess mod_rewrite configuration to exclude a particular folder/url
    5. 34 posts - 13 authors - Last post: Jan 25Ben Nadel explores the URL rewrite IIS plugin, IIS Mod-Rewrite, for use in ColdFusion applications that need search engine safe (SEO/SES) urls
    6. Dev Shed Forums - Apache-php url tweak · PHP URL Routing or
    7. Re: Joomla url mode rewrite problem; Joomla url mode rewrite problem; Re: Route Rewrite Problem; Joomla Superfish menu affects other modules problem; mod rewrite

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. [Help] Simple Url Rewrite (htaccess)
    Can someone help me to rewrite my Urls from this: watch.php?vidtitle=Jessica-Alba-_-Remix&link= to something like ...
  2. What's the htaccess rewrite rule for...
    Nevermind, solved it myself. Delete this thread?
  3. Want to rewrite URL in .htaccess, Please Help
    Hello friends, I am working on a directory and want to rewrite my URLs for it. I am just following website: www. outsourcing. org As you can see,...
  4. Mod Rewrite Help? .htaccess
    How do I get my site example.com so that when I go to example.com/Josh it shows example.com/profile.php?user=Josh
  5. Need help with htaccess subdomain rewrite
    hey guys. I'm trying to make a rewrite for a subdomain but it doesn't seem to come up right. This is what I currently have: Code:...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish