+ Reply to Thread
Results 1 to 9 of 9




  

Thread: htaccess query?

      
  1. #1
    Translucent Purple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to behold Purple Rain's Avatar
    Join Date
    August 12, 2008
    Location
    Dancing In Purple Rain
    Posts
    1,665
    Rep Power
    5
    Feedback Score
    0

    Default htaccess query?

    I am having a problem with my forum.

    If I type --http://www.example.com-- it shows up as --http://www.example.com--

    But if I click any of the Home buttons or links back to the hompage it shows up as --http://www.example.com/index.php-- I have created a .htaccess file, do I need to do anything to it?

    Thanks in advance

    :3084:

  2. #2
    Super Moderator tsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to behold tsdesigns's Avatar
    Join Date
    February 6, 2008
    Location
    Scotland
    Posts
    1,078
    Rep Power
    6
    Feedback Score
    0

    Default Re: htaccess query?

    Well, point all the home links to --http://www.example.com-- instead of having the index.php at the end.

    There isn't anything you can do with the htaccess file to change that.

  3. #3
    Jedi Master eugen will become famous soon enougheugen will become famous soon enough eugen's Avatar
    Join Date
    May 3, 2008
    Posts
    275
    Rep Power
    5
    Feedback Score
    0

    Default Re: htaccess query?

    You can fix this using .htaccess as well...

    Something like this
    Code:
    RewriteCond %{REQUEST_URI} ^index.php
    RewriteRule http://%{HTTP_HOST}/ [R=301,L]
    Hope it helps...
    + Jobs in London, follow us on twitter @jobsplaza
    +

  4. #4
    Super Moderator tsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to behold tsdesigns's Avatar
    Join Date
    February 6, 2008
    Location
    Scotland
    Posts
    1,078
    Rep Power
    6
    Feedback Score
    0

    Default Re: htaccess query?

    Quote Originally Posted by eugen View Post
    You can fix this using .htaccess as well...

    Something like this
    Code:
    RewriteCond %{REQUEST_URI} ^index.php
    RewriteRule http://%{HTTP_HOST}/ [R=301,L]
    Hope it helps...
    Does that actually change it?

    I thought htaccess could only be used to redirect links (so if yoursite.com/index.php?g=123 would turn into yoursite.com/g/123 for example, and by only I mean in the scope of it changing links, I know it can do more than that). I know how to do that.

    Surely it can't change the physical URL that is being linked to? The only benefit of doing this that I can see would be for SEO purposes where the only solution that I can see would be to make all your home page links point to the root instead of index.php/html/whatever. Surely doing that in htaccess would be pretty pointless?

  5. #5
    Grand Masters Colleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond repute Colleen's Avatar
    Join Date
    September 22, 2006
    Location
    Canada
    Posts
    11,144
    Rep Power
    26
    Feedback Score
    0

    Default Re: htaccess query?

    I believe with .htaccess you can redirect anything, anywhere.

  6. #6
    Grand Masters vectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nice vectro's Avatar
    Join Date
    September 5, 2008
    Location
    U.S.A.
    Posts
    1,499
    Rep Power
    4
    Feedback Score
    0

    Default Re: htaccess query?

    Quote Originally Posted by Colleen View Post
    I believe with .htaccess you can redirect anything, anywhere.
    Right. A ReWrite rule in .htaccess can actually re-write the URL.
    Vectro Web Hosting - Web hosting with solid tech support.

    x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.

  7. #7
    The Force is Strong! TmzHosting is on a distinguished road TmzHosting's Avatar
    Join Date
    October 25, 2008
    Location
    New Jersey
    Posts
    51
    Rep Power
    4
    Feedback Score
    0

    Default Re: htaccess query?

    With .htaccess you can do ANYTHING that has to do with URLS

    - Daniel
    TmzHosting | Quality Shared, Reseller, Proxy cPanel Hosting
    |24x7 Support|99.9% Uptime Guarantee|30 Day Money Back Guarantee|

  8. #8
    Grand Masters Colleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond repute Colleen's Avatar
    Join Date
    September 22, 2006
    Location
    Canada
    Posts
    11,144
    Rep Power
    26
    Feedback Score
    0

    Default Re: htaccess query?

    Quote Originally Posted by TmzHosting View Post
    With .htaccess you can do ANYTHING that has to do with URLS

    - Daniel
    As far as I know, you have to have the rewrite_module enabled for it to work... at least that's how it is with my local server and wordpress url rewriting.

  9. #9
    I'm New! Jezmeister is on a distinguished road
    Join Date
    December 23, 2008
    Posts
    14
    Rep Power
    4
    Feedback Score
    0

    Default Re: htaccess query?

    to use mod_rewrite the rewrite module has to be enabled... as logic demands. htaccess can do a whole lot more than it often gets credit for though - from your basic reading of urls like wordpress uses to restricting access to files - htaccess isn't just the rewrite module

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Role of .htaccess in SEO
    By virtuagurl in forum Search Engines
    Replies: 9
    Last Post: Oct 28th, 2010, 1:45 am
  2. Block IPs via HTACCESS
    By Zap in forum Web Hosting
    Replies: 7
    Last Post: Oct 6th, 2008, 4:03 pm
  3. Please Help Me to Sort out this Query ..
    By markpaul in forum SEO Forum
    Replies: 3
    Last Post: Sep 15th, 2008, 6:09 am

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
WebTalkForums
WebTalkForums
Recent Forum Threads