Jump to content

Mod_rewrite


mathkas

Recommended Posts

please help my code .htaccess file is

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>


### phpBB MF BEGIN ###

# Try to remove the comment (#) if URL Rewrite is enabled and does not work
#php_value output_buffering on

DirectoryIndex index.php index.html index.htm

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /

# Remove comments (#) if you would like to use. This will redirect http://yourdomain.com to http://www.yourdomain.com
#RewriteCond %{HTTP_HOST} ^yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

# Rules for board directory and other pages
RewriteRule ^visit-([0-9]*)(.*).html$ board_directory.php?visit=$1 [L]
RewriteRule ^category-([0-9]*)(.*)-([0-9]*)-([a-zA-Z0-9]*)-([a-zA-Z0-9]*).html$ board_directory.php?page=$3&c=$1&sort_by=$4&order=$5 [L]
RewriteRule ^category-([0-9]*)(.*).html$ board_directory.php?c=$1 [L]
RewriteRule ^board_directory.html$ board_directory.php [L]
RewriteRule ^get-free-forum.html$ signup.php [L]
RewriteRule ^terms.html$ terms.php [L]
RewriteRule ^upgrade-forum.html$ upgrade_forum.php [L]

# Rules for forums
RewriteRule ^(.*)vf([0-9]*).html$ viewforum.php?f=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)vt([0-9]*).html$ viewtopic.php?t=$2&%{QUERY_STRING} [L]
RewriteRule ^vp([0-9]*).html$ viewtopic.php?p=$1&%{QUERY_STRING} [L]
RewriteRule ^(.*)vm([0-9]*).html$ memberlist.php?mode=viewprofile&u=$2&%{QUERY_STRING} [L]
RewriteRule ^search.html$ search.php?%{QUERY_STRING} [L]
RewriteRule ^faq.html$ faq.php?%{QUERY_STRING} [L]
RewriteRule ^memberlist.html$ memberlist.php?%{QUERY_STRING} [L]
RewriteRule ^viewonline.html$ viewonline.php?%{QUERY_STRING} [L]
</IfModule>

### phpBB MF END ###

please help mod-rewrite is enable in our hosting or Not ?

Link to comment
Share on other sites

Mod-rewrite is enabled.

Are you having problems with the .htaccess file?

i don't know but i want to create a sub domain with .htaccess file because my web site is a free hosting forums

http://je-biz.tk

 

Make sure you have the .htaccess file is in the map where your sub-domain points to.

It should be in the je-biz.tk folder in your public_html.

yes i have the .htccess file in public_html/JE-BIZ.TK

Link to comment
Share on other sites

You will need to purchase a dedicated IP to accomplish that functionality.

 

What I'm guessing is that you are trying to dynamically create subdomains, right?

Link to comment
Share on other sites

It takes 24h to create a sub-domain.

That is probably why the link doesn't work.

This is to prevent overload of the servers.

tomorrow i see if it is work or not and i contact you to confirme the resaulte thanx

 

You will need to purchase a dedicated IP to accomplish that functionality.

 

What I'm guessing is that you are trying to dynamically create subdomains, right?

how to detectated ip

Link to comment
Share on other sites

how to detectated ip

Source: http://wiki.helionet.org/Using_SSL

However, our provider of dedicated IPs is requesting $12 per dedicated IP. If you are willing to pay this fee, then please create a new topic in the Customer Service forum on HelioNet, and we will give you further instructions related to payment etc.

what is the relation between ssl and create the subdomaine

Link to comment
Share on other sites

You can create subdomains without purchasing a dedicated IP. However, you cannot dynamically create subdomains (eg. create subdomains with PHP scripts), without purchasing a dedicated IP. From what you were telling me, I assumed you wanted to dynamically create subdomains with your PHP scripts.

Link to comment
Share on other sites

SSL is actually not associated with your issue. However, the reason the page is called 'Using SSL' is because Dedicated IPs are most commonly used for SSL, and therefore we named the page 'Using SSL'. Of course you can use Dedicated IPs with other situations, like the one xaav has just said.

 

If you want to buy a dedicated IP, please send $12 to admin@heliohost.org via PayPal and post back here. However, I would confirm with xaav that you actually need one first.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...