phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
How can I check to see if my server allows mod_rewrite?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
::  
Author Message
rotwyla98



Joined: 16 Feb 2007
Posts: 6

How can I check to see if my server allows mod_rewrite?Posted: Fri Feb 16, 2007 10:24 pm    Post subject: How can I check to see if my server allows mod_rewrite?

I have tried to install a bunch of mods here that contain mod_rewrite rules and each one had errors.

The links on the page worked (so they showed what they needed to show (e.g.: domain.com/forim/catname.html) but when I clicked on it, it gave me errors such as viewtopic.php could not be found and things of that sort.

Any way to check to see if mod_rewrite can be used on my server?

Thanks
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

How can I check to see if my server allows mod_rewrite?Posted: Sat Feb 17, 2007 12:51 am    Post subject: Re: How can I check to see if my server allows mod_rewrite?

And welcome Very Happy

So first, mod_rewrite is an Apache module allowing us to play with our URLs. So all of this only apply if your run Apache as a server.
On windows server, it is still possible to use isapi_rewrtie with small adaptations.

A very basic test can tell you if mod rewrite is available :

1) create an html page called found.html with whatever you want in it, but some text to be sure it's loaded (not a blank page basically) and put this in an file called ".htaccess" :

Code:
RewriteEngine on
RewriteBase /
RewriteRule ^find\.html$ /found.html [L]


2)
upload both your .htaccess and the found.html files in your domain's root (read this about how to transfer .htaccess files if you encounter problems).

3) Just try to load -www.example.com/find.html (with your real domain of course). If mod_rewrite is available, you should see the content of found.html while browsing find.html (which does not physically exist by the way).

If it does not work, try :

Code:
RewriteEngine on
RewriteBase /
RewriteRule ^find\.html$ found.html [L]


If none work, mod_rewrite is most likely not loaded.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
rotwyla98



Joined: 16 Feb 2007
Posts: 6

How can I check to see if my server allows mod_rewrite?Posted: Sat Feb 17, 2007 1:19 am    Post subject: Re: How can I check to see if my server allows mod_rewrite?

Its works. I guess I must be adding the mds wrong. I'll try it again and be more careful.

Thanks
Back to top
rotwyla98



Joined: 16 Feb 2007
Posts: 6

How can I check to see if my server allows mod_rewrite?Posted: Sat Feb 17, 2007 2:14 pm    Post subject: Re: How can I check to see if my server allows mod_rewrite?

dcz,

I sent you a PM. Check it when you get the chance and tell me what you think.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: