The Most Active and Friendliest
Affiliate Marketing Community Online!

“Propeller”/  Direct Affiliate

redirect extention with 301

HostXNow

Service Manager
Service Manager
HostXNow.com - Fast Host
Hi djpassion,
it's not rewrite rule but it redirect the page using 301.

Redirect 301 /contact.php http://www.djpassions.com/contact.html
 
Last edited by a moderator:
if you use cpanel to administer your website you can create a redirect from within cpanel quickly and easily!

If you are unsure let me take a look.
 
Im using e107 cms with the furl plugin so think thats why the page rewrite isnt working

When i try Redirect 301 /contact.php http://www.djpassions.com/contact.html

I just get page /contact.html not found so think its something to do with static/dynamic

I have a redirect section in cpanel too but that doesnt work either
 
Last edited by a moderator:
Try:

Code:
RewriteRule ^contact\.html$ contact.php [L]

Or .. for each file:
Code:
RewriteRule ^(.*)\.html$ $1.php [L]
 
Try:

Code:
RewriteRule ^contact\.html$ contact.php [L]

Or .. for each file:
Code:
RewriteRule ^(.*)\.html$ $1.php [L]

that didnt work either

in .htaccess i have this

# Use PHP5CGI as default
#AddHandler fcgid-script.php
#FCGIWrapper /usr/local/cpanel/cgi-sys/fcgiwrapper.php
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.djpassions\.com
RewriteRule (.*) http://www.djpassions.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^djpassions.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.djpassions.com$
RewriteRule ^news.php$ http://www.djpassions.com [R=301,L]

RewriteBase /

RewriteRule themes.html$ themes.php
RewriteRule themes([0-9]*)\.html(.*) themes.php?start=$1
RewriteRule themes-([0-9]*)\.html(.*) news.php?themepreview.$1
#RewriteRule download/(.+)/$ createzip/download.php?theme=$1

# ===============================================
# NEWS ==========================================
RewriteRule news.html$ news.php
RewriteRule news([0-9]*)-([0-9]*)\.html(.*)$ news.php?$1.$2
RewriteRule news([0-9]*)-([0-9]*)-([0-9]*)\.html(.*)$ news.php?$1.$2.$3
RewriteRule news-i([0-9]*)-([0-9]*)\.html(.*)$ news.php?item.$1.$2
RewriteRule news([0-9]*)\.html(.*)$ news.php?extend.$1
RewriteRule news-c([0-9]*)\.html(.*)$ news.php?cat.$1
RewriteRule news-c([0-9]*)-([0-9]*)\.html(.*)$ news.php?cat.$1.$2

# ==============================================
# DOWNLOADS ====================================
RewriteRule download.html$ download.php
RewriteRule downloads([0-9]*)\.html(.*)$ download.php?view.$1
RewriteRule download([0-9]*)\.html(.*)$ download.php?list.$1
RewriteRule downloads([0-9]*)$ download.php?view.$1
RewriteRule download([0-9]*)$ download.php?list.$1
RewriteRule request([0-9]*)\.html(.*)$ request.php?$1

# ==============================================
# PAGE.PHP =====================================
RewriteRule page.html page.php
RewriteRule page([0-9]*)\.html(.*)$ page.php?$1

#==============================================
# USER.PHP ====================================
RewriteRule user.html user.php
RewriteRule user([0-9]*)\.html(.*)$ user.php?id.$1

# =============================================
# SUBMITNEWS.PHP ==============================
RewriteRule submitnews.html submitnews.php

# =============================================
# CONTACT.PHP =================================
RewriteRule contact.html contact.php

# =============================================
# UPLOAD.PHP =================================
RewriteRule upload.html upload.php

# =============================================
# SEARCH.PHP =================================
RewriteRule search.html search.php

# =============================================
# SIGNUP.PHP =================================
RewriteRule signup.html signup.php

# =============================================
# SCHEDULE.PHP =================================
#RewriteRule schedule.html plugins/djschedule/djschedule_page.php
#RewriteRule plugins/djschedule/profile.php profile.php

# =============================================
# CHATROOM.PHP =================================
#RewriteRule chat.html plugins/phpfreechat_menu/index.php

# =============================================
# DONATE.PHP =================================
RewriteRule donate.html page.php?4

# =============================================
# APPLY.PHP =================================
RewriteRule apply.html plugins/apply/apply.php?1

# =============================================
# FAQ.PHP =================================
#RewriteRule faq.html plugins/faq/faq.php

# =============================================
# SUBMITLINK.PHP =================================
#RewriteRule submit_link.html plugins/links_page/links.php?submit

# =============================================
# COMMENTS ====================================
RewriteRule comment-n([0-9]*)\.html(.*)$ comment.php?comment.news.$1
RewriteRule reply-n([0-9]*)-([0-9]*)\.html(.*)$ comment.php?reply.news.$1.$2
RewriteRule reply-d([0-9]*)-([0-9]*)\.html(.*)$ comment.php?reply.download.$1.$2

# =============================================
# LINKS PAGE PLUGIN ===========================
RewriteRule links.html plugins/links_page/links.php
RewriteRule links([0-9]*)\.html(.*)$ plugins/links_page/links.php?view.$1
RewriteRule links-([0-9]*)\.html(.*)$ plugins/links_page/links.php?cat.$1

# =============================================
# CONTENT PLUGIN ==============================
RewriteRule content.html plugins/content/content.php
RewriteRule content([0-9]*)\.html(.*)$ plugins/content/content.php?content.$1
RewriteRule content-([0-9]*)\.html(.*)$ plugins/content/content.php?recent.$1

# =============================================
# STATS PLUGIN ================================
RewriteRule stats.html plugins/log/stats.php
RewriteRule stats([0-9]*)\.html(.*)$ plugins/log/stats.php?$1

# =============================================
# PAGE.PHP ====================================
RewriteRule page/$ page.php
RewriteRule page/([0-9]+)/$ page.php?$1

# =============================================
# FORUM PLUGIN ================================
RewriteRule forum.html plugins/forum/forum.php
RewriteRule forum([0-9]*)\.html(.*)$ plugins/forum/forum_viewforum.php?$1
RewriteRule forum([0-9]*)-([0-9]*)\.html(.*)$ plugins/forum/forum_viewforum.php?$1.$2
RewriteRule forum-t([0-9]*)\.html(.*)$ plugins/forum/forum_viewtopic.php?$1
RewriteRule forum-t([0-9]*)-([0-9]*)\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2
RewriteRule forum-t([0-9]*)-([0-9]*)-next\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2.next
RewriteRule forum-t([0-9]*)-([0-9]*)-prev\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2.prev
RewriteRule forum-t([0-9]*)-last\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.last
RewriteRule forum-t([0-9]*)-([0-9]*)-track\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2.track
RewriteRule forum-t([0-9]*)-([0-9]*)-untrack\.html(.*)$ plugins/forum/forum_viewtopic.php?$1.$2.untrack
RewriteRule forum-r([0-9]*)\.html(.*)$ plugins/forum/forum_post.php?rp.$1
RewriteRule forum-p([0-9]*)\.html(.*)$ plugins/forum/forum_post.php?nt.$1
RewriteRule forum-e([0-9]*)\.html(.*)$ plugins/forum/forum_post.php?edit.$1
RewriteRule forum-t([0-9]*)-report\.html(.*)$ plugins/forum/forum_viewtopic.php?$1..report
RewriteRule forum-q([0-9]*)\.html(.*)$ plugins/forum/forum_post.php?quote.$1
RewriteRule top-poster-([0-9]*)-([0-9]*)\.html(.*)$ top.php?$1.top.forum.$2
RewriteRule top-active([0-9]*)\.html(.*)$ top.php?$1.active
RewriteRule top-active-([0-9]*)-([0-9]*)\.html(.*)$ top.php?$1.active.forum.$2

# =============================================
# KIG Plugin -- this does not work yet..
RewriteRule gallery.html plugins/kig_menu/index.php
RewriteRule album([0-9]*)\.html(.*)$ plugins/kig_menu/index.php?view=album&albumId=$1
RewriteRule image([0-9]*)\.html(.*)$ plugins/kig_menu/index.php?view=image&imageId=$1

# =============================================
# GUESTBOOK PLUGIN ============================
RewriteRule guestbook\.html(.*)$ plugins/guestbook/index.php

# =============================================
# PM PLUGIN ===================================
RewriteRule pm([0-9]*)\.html(.*)$ plugins/pm/pm.php?send.$1

AddType video/x-ms-asf asf asx
AddType audio/x-scpls pls
AddType audio/x-pn-realaudio ram
 
Last edited by a moderator:
banners
Back