Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Apr 2009
    Location
    Ahmedabad,India
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question url rewrite not affecting on my domain

    Hi,

    I am using my custom MVC php framework.

    my current url is http://www.mydomain.com/index.php?vi...elopement....i want http://www.mydomain.com/virtuemart-developement

    my .htaccess file look like...
    Code:
    Options +FollowSymlinks
    RewriteEngine on
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?view=$1 [L,QSA]
    but it doesn't affect on my website. I didn't get any error...site is working fine.

    can anyone help me in this?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    What do you get when you have http://www.mydomain.com/virtuemart-developement in the address bar?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Apr 2009
    Location
    Ahmedabad,India
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts
    page is working fine when i have http://www.mydomain.com/virtuemart-developement

    but it doesn't affect on my website directly when i visit http://www.mydomain.com/index.php?vi...t-developement
    Last edited by jayminkey; 01-30-2012 at 01:13 PM.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New Coder
    Join Date
    Apr 2009
    Location
    Ahmedabad,India
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts
    thanks got it...
    could you please help me what changes should i make to my current .htaccess code for url rewrite which Permanently moved my urls?

    Thanks

  • #6
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post
    Please clear,now which of the url do you want to use..If you are using rewrite rules in your site,short page linkage (eg. <a href='page.html'>page</a>) will give a problem, it should be (eg. <a href='site_url.com/page.html'>Page Url</a>
    I hope it helps,but be clearer

  • #7
    New Coder
    Join Date
    Apr 2009
    Location
    Ahmedabad,India
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts
    i am using full urls.....<a href='site_url.com/page.html'>Page</a>

    actually my php mvc framework ...controller doesn't support hyphen(-) in controller class name.

    from http://www.mydomain.com/index.php?vi...rtdevelopement to http://www.mydomain.com/virtuemartdevelopement working file but i want http://www.mydomain.com/virtuemart-developement

    when i use /virtuemart-developement it gave me controller parse error....also i google it that (-) treated as a minus symbol and results in a parse error.

    So is their any another workaround for this?
    Last edited by jayminkey; 02-02-2012 at 10:39 AM.

  • #8
    New Coder
    Join Date
    Apr 2009
    Location
    Ahmedabad,India
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Hi,

    i need help,

    below code is working fine for url rewrite,

    http://www.mydomain.com/index.php?view=magento-theming
    TO http://www.mydomain.com/magento-theming

    Code:
    Options +FollowSymlinks
    RewriteEngine on
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?view=$1 [L,QSA]
    but i want to set as ....http://www.mydomain.com/index.php?view=magento-theming TO http://www.mydomain.com/magento-service/magento-theming

    i need to add magento-service in between

    i try below code but not working

    Code:
    Options +FollowSymlinks
    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
    
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?view=$1 [L,QSA]
    RewriteRule ^magento-service/(.*)$ index.php?view=magento-designing [L,QSA]
    i need sub directory like url.....actually in my framework there is no any sub directory like structure.

    can anyone help me in this?

    thanks,


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •