Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .htaccess
- index.php
- topics.php
- create.php
- register.php
- templates/
- frontpage.php
- topics.php
- create.php
- register.php
- includes/
- header.php
- footer.php
- RewriteEngine On # Turn on the rewriting engine
- # Manually rewriting rules for pages to preserve user profile pages - need to fix later
- RewriteRule ^about$ about.php [NC,L] # take out .php extention
- RewriteRule ^register$ register.php [NC,L] # take out .php extention
- RewriteRule ^create$ create.php [NC,L] # take out .php extention
- # Rewrite topic page
- RewriteRule ^topics/category/([A-Za-z0-9-]+)/?$ topics.php?category=$1 [NC,L]
- # Rewrite user profile pages to MyMentor.Codes/username
- RewriteRule ^([A-Za-z0-9-]+)/?$ user.php?username=$1 [NC,L]
- <a href="about"></a>
- <a href="register"></a>
- <a href="create"></a>
- <a href="find-mentor"></a>
- <a href="topics/category/<?php echo $category->name; ?>"><?php echo $category->name; ?></a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement